
Data Structures | |
| class | Handle |
Public Member Functions | |
| Region () | |
| Creates an empty Region. | |
| Region (Point[] points) | |
| Creates a region from a collection of points. | |
| Region (Rectangle rectangle) | |
| Creates a region from a Rectangle. | |
| void | Dispose () |
| Releases the resources used by the Region class. | |
| Region | Difference (Region other) |
| Computes the difference of two regions. | |
| Region | Union (Region other) |
| Computes the union of two regions. | |
| Region | Intersection (Region other) |
| Computes the intersection of two regions. | |
| Region | Dilation (Region structuringElement) |
| Performs morphological erosion on the input region using the specified structuring element. | |
| Region | Erosion (Region structuringElement) |
| Performs morphological erosion on the input region using the specified structuring element. | |
| override string | ToString () |
| Converts the region to a string. | |
Static Public Member Functions | |
| static Region | operator- (Region regionMinuend, Region regionSubtrahend) |
| Performs a region difference operation. It is equivalent to the Difference method. | |
| static Region | operator+ (Region region1, Region region2) |
| Performs a region union operation. It is equivalent to the Union method. | |
Properties | |
| DisposableList< Region > | ConnectedComponents [get] |
| Calculate the connected components of the region. | |
| List< Point > | Points [get] |
| The points of the region. | |
| uint | Area [get] |
| Calculates the area of a region. The area is the number of pixels in the region. | |
| PointF | CenterOfGravity [get] |
| Calculates the center of gravity of a region. | |
| static IEqualityComparer< Region > | Comparer = new RegionEqualityComparer() [get] |
| Gets a default equality comparer for comparing Region data values. | |
Represents a region defined by a set of points in the image plane.
The Region class models a geometric area within an image, represented as a collection of discrete points in 2D image coordinates. It serves as a logical grouping of image locations, which may be used for selection, analysis, or rendering purposes.
The Region class implements its own drawing logic via the IDrawable interface. When triggered by the Painter, it paints itself onto the target image by rendering only the points that fall within the image bounds.
|
inline |
Creates an empty Region.
Creates a region from a collection of points.
Creates a region from a Rectangle.
Computes the difference of two regions.
Performs morphological erosion on the input region using the specified structuring element.
The reference point of the structuring element is at (0, 0).
|
inline |
Releases the resources used by the Region class.
Performs morphological erosion on the input region using the specified structuring element.
The reference point of the structuring element is at (0, 0).
Computes the intersection of two regions.
Performs a region union operation. It is equivalent to the Union method.
Performs a region difference operation. It is equivalent to the Difference method.
| regionMinuend | The region from which the subtrahend is subtracted. |
| regionSubtrahend | The region that is subtracted from the minuend. |
|
inline |
Converts the region to a string.
Computes the union of two regions.
|
get |
Calculates the area of a region. The area is the number of pixels in the region.
|
get |
Calculates the center of gravity of a region.
| IcvMathErrorException | The center of gravity could not be computed. |
|
staticget |
Gets a default equality comparer for comparing Region data values.
|
get |
Calculate the connected components of the region.
The 8-neighborhood is used to determine the components.
|
get |
The points of the region.