![]() |
imagepro
2019 march
Biblioteca imagepro
|
Detector de bordes de Canny. Más...
Ir al código fuente de este archivo.
Clases | |
class | EdgeDetectorCanny |
Detector de bordes de Canny.
Clase para resaltar los bordes dentro de la imagen, usando el filtro de Canny
Por defecto usa:
threshold1 = 0;
threshold2 = 30;
apertureSize = 3;
....
Tomado de: http://docs.opencv.org/2.4/modules/imgproc/doc/feature_detection.html?highlight=canny#canny
image – single-channel 8-bit input image.
threshold1 – first threshold for the hysteresis procedure.
threshold2 – second threshold for the hysteresis procedure.
apertureSize – aperture size for the Sobel() operator.
L2gradient – a flag, indicating whether a more accurate L_2 norm =\sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough ( L2gradient=false ).
Ejemplo de uso: