Image Processing Toolbox | ![]() ![]() |
Object-Based Operations
In a binary image, an object is any set of connected pixels with the value 1. (meaning that they are "on
"). For example, this matrix represents a binary image containing a single object, a 3-by-3 square. The rest of the image is background.
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0
This section discusses the types of neighborhoods used for object-based operations, and describes how to use toolbox functions to perform:
![]() | Related Operations | 4- and 8-Connected Neighborhoods | ![]() |