Erosion and dilation are the most fundamental morphological operators. Therefore, we will present these in the first recipe. The fundamental component in mathematical morphology is the structuring element. A structuring element can be simply defined as a configuration of pixels (the square shape in the following figure) on which an origin is defined (also called an anchor point). Applying a morphological filter consists of probing each pixel of the image using this structuring element. When the origin of the structuring element is aligned with a given pixel, its intersection with the image defines a set of pixels on which a particular morphological operation is applied (the nine shaded pixels in the following figure). In principle, the structuring element can be of any shape, but most often, a simple shape such as a square, circle, or diamond with the origin at the center is used (mainly for efficiency reasons), as shown in the following...
OpenCV Computer Vision Application Programming Cookbook Second Edition
By :
OpenCV Computer Vision Application Programming Cookbook Second Edition
By:
Overview of this book
Table of Contents (18 chapters)
OpenCV Computer Vision Application Programming Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Playing with Images
Manipulating Pixels
Processing Color Images with Classes
Counting the Pixels with Histograms
Transforming Images with Morphological Operations
Filtering the Images
Extracting Lines, Contours, and Components
Detecting Interest Points
Describing and Matching Interest Points
Estimating Projective Relations in Images
Processing Video Sequences
Index
Customer Reviews