O'Reilly logo

OpenCV 2 Computer Vision Application Programming Cookbook by Robert Laganière

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

Extracting the components' contours

Images generally contain representation of objects. One of the goals of image analysis is to identify and extract those objects. In object detection/recognition applications, the first step is to produce a binary image showing where certain objects of interest could be located. No matter how this binary map has been obtained (for example, could be from the histogram back projection as we did in Chapter 4, or from motion analysis as we will learn in Chapter 10), the next step is to then extract the objects which are contained in this collection of 1s and 0s. Consider for example, the image of buffaloes in binary form that we manipulated in Chapter 5 as seen here:

We obtained this image from a simple thresholding ...

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