The OpenCV Cookbook
Robert Laganiere Robert Laganière
2nd Edition
Packt Publishing, 2014

Robert Laganiere Robert Laganière
1st Edition
Packt Publishing, 2013

Robert Laganiere Robert Laganière
Chinese Edition
Packt Publishing, 2013

If you have questions, comments or suggestions, do not hesitate to contact me.

    Table of Contents:
  • Playing with Images
    • Installing the OpenCV Library;
    • Loading, displaying and saving images;
    • Exploring the cv::Mat data structure;
    • Defining regions of interest;
  • Manipulating the Pixels
    • Accessing the pixel values;
    • Scanning an image with pointers;
    • Scanning an image with iterators;
    • Writing efficient image scanning loops;
    • Scanning an image with neighbour access;
    • Performing simple image arithmetic;
    • Remapping an image;
  • Processing Images with Classes
    • Using the Strategy Pattern in Algorithm Design;
    • Using the Controller Pattern to Communicate with Processing Modules;
    • Converting color representations;
    • Representing colors with hue, saturation and brightness;
  • Counting the Pixels with Histograms
    • Computing the Image Histogram;
    • Applying Look-up Tables to Modify Image Appearance;
    • Equalizing the Image Histogram;
    • Backprojecting a Histogram to Detect Specific Image Content;
    • Using the Meanshift Algorithm to Find an Object;
    • Retrieving Similar Images using Histogram Comparison;
    • Counting pixels with integral images;
  • Transforming images with morphological operations
    • Eroding and Dilating Images using Morphological Filters;
    • Opening and Closing Images using Morphological Filters;
    • Detecting edges and corners using morphological filters;
    • Segmenting images using watersheds;
    • Extracting distinctive regions using MSER;
    • Extracting foreground objects with the GrabCut algorithm;
  • Filtering the Images
    • Filtering Images using Low-pass Filters;
    • Filtering Images using a Median Filter;
    • Applying Directional Filters to Detect Edges;
    • Computing the Laplacian of an Image;
  • Extracting Lines, Contours and Components
    • Detecting Image Contours with the Canny Operator;
    • Detecting Lines in Images with the Hough Transform;
    • Fitting a Line to a Set of Points;
    • Extracting the Components’ Contours;
    • Computing Components’ Shape Descriptors;
  • Detecting Interest Points
    • Detecting corners in an image;
    • Detecting features quickly;
    • Detecting Scale-Invariant Features;
    • Describing FAST Features at multiple scales;
  • Describing and Matching Interest Points
    • Matching local templates;
    • Describing local intensity patterns;
    • Describing keypoints with binary features;
  • Estimating Projective Relations in Images
    • Calibrating a camera;
    • Computing the Fundamental Matrix of an Image Pair;
    • Matching Images using Random Sample Consensus;
    • Computing a homography between two images;
  • Processing Video Sequences
    • Reading Video Sequences;
    • Processing the Video Frames;
    • Writing Video Sequences;
    • Tracking Feature Points in Video;
    • Extracting the Foreground Objects in Video
OpenCV Computer Vision Application Programming Cookbook 2nd Edition
  • This is the author's website for the OpenCV Computer Vision Application Programming Cookbook Second Edition.
  • The book is a comprehensive OpenCV guide that exposes you to practical and fundamental computer vision concepts, illustrated by extensive examples.
  • This book covers version 2.4.9 of OpenCV.
The images from the book
All the images used in the book can be obtained by going to our Picassa Web Album:
How to install OpenCV for Visual C++