7.2. Boundary descriptions

7.2.1. Boundary and region

A region usually describes contents (or interior points) which are surrounded by a boundary (or perimeter) which is often called the region's contour. The form of the contour is generally referred to as its shape. A point can be defined to be on the boundary (contour) if it is part of the region and there is at least one pixel in its neighbourhood that is not part of the region. The boundary itself is usually found by contour following: we first find one point on the contour and then progress round the contour either in a clockwise direction, or anticlockwise, finding the nearest (or next) contour point.
In order to define the interior points in a region and the points in the boundary, ...

Get Feature Extraction and Image Processing for Computer Vision, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.