A region is defined as a set of points with integer coordinates. Therefore, a region may represent a subset of the pixels of an image.
Note that the points in a region do not need to be connected.
| Example of a region with two components |
|---|
Additionally, the coordinates of the region points are not limited to the image size, they can be larger than the image width and height and even negative.