pub fn create_canny_edge_detector(
low_thresh: f64,
high_thresh: f64,
apperture_size: i32,
l2gradient: bool,
) -> Result<Ptr<CUDA_CannyEdgeDetector>>Expand description
Creates implementation for cuda::CannyEdgeDetector .
§Parameters
- low_thresh: First threshold for the hysteresis procedure.
- high_thresh: Second threshold for the hysteresis procedure.
- apperture_size: Aperture size for the Sobel operator.
- L2gradient: Flag indicating whether a more accurate
norm
should be used to compute the image gradient magnitude ( L2gradient=true ), or a faster default
norm
is enough ( L2gradient=false ).
§C++ default parameters
- apperture_size: 3
- l2gradient: false