Find white regions in binary image.
Result is IM_USHORT type. Regions can be 4 connected or 8 connected.
Returns the number of regions found. Background is marked as 0.
Regions touching the border are considered only if touch_border=1.
Measure the actual area of all regions. Holes are not included.
This is the number of pixels of each region.
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
data has size the number of regions.
Measure the polygonal area limited by the perimeter line of all regions. Holes are not included.
Notice that some regions may have polygonal area zero.
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
data has size the number of regions.
Calculate the centroid position of all regions. Holes are not included.
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
data has size the number of regions. If area is NULL will be internally calculated.
Calculate the principal major axis slope of all regions.
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
data has size the number of regions. If area or centroid are NULL will be internally calculated.
Principal (major and minor) axes are defined to be those axes that pass through the centroid, about which the moment of inertia of the region is, respectively maximal or minimal.
Measure the number and area of holes of all regions.
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
data has size the number of regions. If some data is NULL it will be not calculated.
Measure the total perimeter of all regions (external and internal).
Source image is IM_USHORT type (the result of imAnalyzeFindRegions).
It uses a half-pixel inter distance for 8 neighboors in a perimeter of a 4 connected region.
This function can also be used to measure line lenght.
data has size the number of regions.
Isolates the perimeter line of gray integer images. Background is defined as being black (0).
It just checks if at least one of the 4 connected neighboors is non zero. Image borders are extended with zeros.
Eliminates regions that have size outside the given interval.
Source and destiny are a binary images. Regions can be 4 connected or 8 connected.
Can be done in-place. end_size can be zero to ignore big objects.