Canny Edge Detector can help us get the edge pixels, but it cannot combine these separate segments into a cohesive whole. Emgu CV provides a convenient method that will do exactly what we want. Before we start using it, we need to know what a contour means. The understanding may be different in different circumstances, but here we'd like to define a contour as a list of pixels or points that can represent a curve in a digital image, in a structured way. In Emgu CV, a contour is stored as a sequence of pixels or points.
FindContours method in the
Image<TColor,TDepth> class, is the key to access all the contours of a binary image. So before we call this function, we need to use Canny Edge Detector to do the transformation. ...