Is findContours() in OpenCV or EMGUCV built-in with edge detection inside ? If it's yes, what is the algorithm ?
Because without calling any edge detection function, it can detect the edge of image.
Is findContours() in OpenCV or EMGUCV built-in with edge detection inside ? If it's yes, what is the algorithm ?
Because without calling any edge detection function, it can detect the edge of image.
Edges are computed as points that are extrema of the image gradient in the direction of the gradient and contours are often obtained from edges, but they are aimed at being object contours. Thus, they need to be closed curves.
findContours only retrieves contours from the binary image. Of course you can mix it with edge detection i.e apply findContours on the output of Canny as in the example Finding contours in your image