imagepro  2019 march
Biblioteca imagepro
Clases
Referencia del Archivo edgedetectorcanny.h

Detector de bordes de Canny. Más...

#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "imagepro.h"

Ir al código fuente de este archivo.

Clases

class  EdgeDetectorCanny
 

Descripción detallada

Detector de bordes de Canny.

Versión
1.0
Fecha
2019 march
Autor
Carlos Alberto Ospina Caicedo (SGC-OVSPo)

Clase para resaltar los bordes dentro de la imagen, usando el filtro de Canny

Canny.png
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:

int main()
{
Mat image = imread("pathimagen.jpg");
Mat *image_original = & image;
Mat *image_final = & image;
int case = 0;
c.setInputData(image_original,image_final);
imshow("imgo",&image_original);
imshow("imgf",&image_final);
}