O'Reilly logo

Emgu CV Essentials by Shin Shi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Contour

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.

Contour finding

The 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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required