O'Reilly logo

Practical Computer Vision with SimpleCV by Katherine Scott, Nathan Oostendorp, Anthony Oliver, Kurt Demaagd

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

Appendix C. Advanced Features

This appendix covers a few of the more advanced segmentation and feature extraction tools in the SimpleCV framework. Some of these automate basic processes covered earlier in the book, such as looking at the differences between sets of images. Other elements represent more advanced tools for identifying and extracting features.

Foreground/Background Segmentation

As we mentioned in Chapter 8, the purpose of feature detection is to identify the parts of an image that are “interesting.” It might seem counterintuitive, but one way to determine what is interesting is to first find what is uninteresting. Remove what is uninteresting in an image and the interesting portion must be part of what is left. This is a useful technique because sometimes it’s easier to identify the uninteresting parts of an image—namely the background. For instance, given video feed, the moving parts of the image are often the interesting parts and the stationary parts are less interesting.

In computer vision, this type of process is called foreground/background segmentation, and there are a variety of ways to accomplish it. The SimpleCV framework currently supports three different techniques:

  • frame differencing segmentation

  • running segmentation, and

  • color segmentation

All of these methods examine multiple images to find pixels that are changing (the foreground) versus the pixels that remain static (the background). Also remember that the terms foreground and background do not refer to how ...

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