This chapter contains operators that allow you to access the different
features of regions.
In the following, the available features are illustrated.
- 'area':
Area of the object
- 'row':
Row index of the center
- 'column':
Column index of the center
- 'row1':
Row index of upper left corner
- 'column1':
Column index of upper left corner
- 'row2':
Row index of lower right corner
- 'column2':
Column index of lower right corner
- 'width':
Width of the region (parallel to the coordinate axis)
- 'height':
Height of the region (parallel to the coordinate axis)
- 'circularity':
Circularity (see circularitycircularityCircularitycircularityCircularityCircularity)
- 'compactness':
Compactness (see compactnesscompactnessCompactnesscompactnessCompactnessCompactness)
- 'contlength':
Total length of contour (see operator contlengthcontlengthContlengthcontlengthContlengthContlength)
- 'convexity':
Convexity (see convexityconvexityConvexityconvexityConvexityConvexity)
- 'rectangularity':
Rectangularity (see rectangularityrectangularityRectangularityrectangularityRectangularityRectangularity)
- 'ra':
Main radius of the equivalent ellipse (see elliptic_axiselliptic_axisEllipticAxiselliptic_axisEllipticAxisEllipticAxis)
- 'rb':
Secondary radius of the equivalent ellipse (see elliptic_axiselliptic_axisEllipticAxiselliptic_axisEllipticAxisEllipticAxis)
- 'phi':
Orientation of the equivalent ellipse
see elliptic_axiselliptic_axisEllipticAxiselliptic_axisEllipticAxisEllipticAxis)
- 'anisometry:'
Anisometry (see eccentricityeccentricityEccentricityeccentricityEccentricityEccentricity)
- 'bulkiness:'
Bulkiness (see operator eccentricityeccentricityEccentricityeccentricityEccentricityEccentricity)
- 'struct_factor:'
Structur Factor (see operator eccentricityeccentricityEccentricityeccentricityEccentricityEccentricity)
- 'outer_radius':
Radius of smallest surrounding circle (see smallest_circlesmallest_circleSmallestCirclesmallest_circleSmallestCircleSmallestCircle)
- 'inner_radius':
Radius of largest inner circle (see inner_circleinner_circleInnerCircleinner_circleInnerCircleInnerCircle)
- 'inner_width':
Width of the largest axis-parallel rectangle that fits into the region
(see inner_rectangle1inner_rectangle1InnerRectangle1inner_rectangle1InnerRectangle1InnerRectangle1)
- 'inner_height':
Height of the largest axis-parallel rectangle that fits into the region
(see inner_rectangle1inner_rectangle1InnerRectangle1inner_rectangle1InnerRectangle1InnerRectangle1)
- 'dist_mean':
Mean distance from the region border to the center (see operator
roundnessroundnessRoundnessroundnessRoundnessRoundness)
- 'dist_deviation:'
Deviation of the distance from the region border to the center
(see operator roundnessroundnessRoundnessroundnessRoundnessRoundness)
- 'roundness':
Roundness (see operator roundnessroundnessRoundnessroundnessRoundnessRoundness)
- 'num_sides':
Number of polygon sides (see operator roundnessroundnessRoundnessroundnessRoundnessRoundness)
- 'connect_num':
Number of connection components (see operator connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles)
- 'holes_num':
Number of holes (see operator connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles)
- 'area_holes':
Area of the holes of the object (see operator area_holesarea_holesAreaHolesarea_holesAreaHolesAreaHoles)
- 'max_diameter':
Maximum diameter of the region (see operator diameter_regiondiameter_regionDiameterRegiondiameter_regionDiameterRegionDiameterRegion)
- 'orientation':
Orientation of the region (see operator orientation_regionorientation_regionOrientationRegionorientation_regionOrientationRegionOrientationRegion)
- 'euler_number':
Euler number (see operator euler_numbereuler_numberEulerNumbereuler_numberEulerNumberEulerNumber)
- 'rect2_phi':
Orientation of the smallest surrounding rectangle (see operator
smallest_rectangle2smallest_rectangle2SmallestRectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2)
- 'rect2_len1':
Half the length of the smallest surrounding rectangle
(see operator smallest_rectangle2smallest_rectangle2SmallestRectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2)
- 'rect2_len2':
Half the width of the smallest surrounding rectangle
(see operator smallest_rectangle2smallest_rectangle2SmallestRectangle2smallest_rectangle2SmallestRectangle2SmallestRectangle2)
- 'moments_m11':
Geometric moments of the region
(see operator moments_region_2ndmoments_region_2ndMomentsRegion2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2nd)
- 'moments_m20':
Geometric moments of the region
(see operator moments_region_2ndmoments_region_2ndMomentsRegion2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2nd)
- 'moments_m02':
Geometric moments of the region
(see operator moments_region_2ndmoments_region_2ndMomentsRegion2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2nd)
- 'moments_ia':
Geometric moments of the region
(see operator moments_region_2ndmoments_region_2ndMomentsRegion2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2nd)
- 'moments_ib':
Geometric moments of the region
(see operator moments_region_2ndmoments_region_2ndMomentsRegion2ndmoments_region_2ndMomentsRegion2ndMomentsRegion2nd)
- 'moments_m11_invar':
Geometric moments of the region
(see operator moments_region_2nd_invarmoments_region_2nd_invarMomentsRegion2ndInvarmoments_region_2nd_invarMomentsRegion2ndInvarMomentsRegion2ndInvar)
- 'moments_m20_invar':
Geometric moments of the region
(see operator moments_region_2nd_invarmoments_region_2nd_invarMomentsRegion2ndInvarmoments_region_2nd_invarMomentsRegion2ndInvarMomentsRegion2ndInvar)
- 'moments_m02_invar':
Geometric moments of the region
(see operator moments_region_2nd_invarmoments_region_2nd_invarMomentsRegion2ndInvarmoments_region_2nd_invarMomentsRegion2ndInvarMomentsRegion2ndInvar)
- 'moments_phi1':
Geometric moments of the region
(see operator moments_region_2nd_rel_invarmoments_region_2nd_rel_invarMomentsRegion2ndRelInvarmoments_region_2nd_rel_invarMomentsRegion2ndRelInvarMomentsRegion2ndRelInvar)
- 'moments_phi2':
Geometric moments of the region
(see operator moments_region_2nd_rel_invarmoments_region_2nd_rel_invarMomentsRegion2ndRelInvarmoments_region_2nd_rel_invarMomentsRegion2ndRelInvarMomentsRegion2ndRelInvar)
- 'moments_m21':
Geometric moments of the region
(see operator moments_region_3rdmoments_region_3rdMomentsRegion3rdmoments_region_3rdMomentsRegion3rdMomentsRegion3rd)
- 'moments_m12':
Geometric moments of the region
(see operator moments_region_3rdmoments_region_3rdMomentsRegion3rdmoments_region_3rdMomentsRegion3rdMomentsRegion3rd)
- 'moments_m03':
Geometric moments of the region
(see operator moments_region_3rdmoments_region_3rdMomentsRegion3rdmoments_region_3rdMomentsRegion3rdMomentsRegion3rd)
- 'moments_m30':
Geometric moments of the region
(see operator moments_region_3rdmoments_region_3rdMomentsRegion3rdmoments_region_3rdMomentsRegion3rdMomentsRegion3rd)
- 'moments_m21_invar':
Geometric moments of the region
(see operator moments_region_3rd_invarmoments_region_3rd_invarMomentsRegion3rdInvarmoments_region_3rd_invarMomentsRegion3rdInvarMomentsRegion3rdInvar)
- 'moments_m12_invar':
Geometric moments of the region
(see operator moments_region_3rd_invarmoments_region_3rd_invarMomentsRegion3rdInvarmoments_region_3rd_invarMomentsRegion3rdInvarMomentsRegion3rdInvar)
- 'moments_m03_invar':
Geometric moments of the region
(see operator moments_region_3rd_invarmoments_region_3rd_invarMomentsRegion3rdInvarmoments_region_3rd_invarMomentsRegion3rdInvarMomentsRegion3rdInvar)
- 'moments_m30_invar':
Geometric moments of the region
(see operator moments_region_3rd_invarmoments_region_3rd_invarMomentsRegion3rdInvarmoments_region_3rd_invarMomentsRegion3rdInvarMomentsRegion3rdInvar)
- 'moments_i1':
Geometric moments of the region
(see operator moments_region_centralmoments_region_centralMomentsRegionCentralmoments_region_centralMomentsRegionCentralMomentsRegionCentral)
- 'moments_i2':
Geometric moments of the region
(see operator moments_region_centralmoments_region_centralMomentsRegionCentralmoments_region_centralMomentsRegionCentralMomentsRegionCentral)
- 'moments_i3':
Geometric moments of the region
(see operator moments_region_centralmoments_region_centralMomentsRegionCentralmoments_region_centralMomentsRegionCentralMomentsRegionCentral)
- 'moments_i4':
Geometric moments of the region
(see operator moments_region_centralmoments_region_centralMomentsRegionCentralmoments_region_centralMomentsRegionCentralMomentsRegionCentral)
- 'moments_psi1':
Geometric moments of the region
(see operator moments_region_central_invarmoments_region_central_invarMomentsRegionCentralInvarmoments_region_central_invarMomentsRegionCentralInvarMomentsRegionCentralInvar)
- 'moments_psi2':
Geometric moments of the region
(see operator moments_region_central_invarmoments_region_central_invarMomentsRegionCentralInvarmoments_region_central_invarMomentsRegionCentralInvarMomentsRegionCentralInvar)
- 'moments_psi3':
Geometric moments of the region
(see operator moments_region_central_invarmoments_region_central_invarMomentsRegionCentralInvarmoments_region_central_invarMomentsRegionCentralInvarMomentsRegionCentralInvar)
- 'moments_psi4':
Geometric moments of the region
(see operator moments_region_central_invarmoments_region_central_invarMomentsRegionCentralInvarmoments_region_central_invarMomentsRegionCentralInvarMomentsRegionCentralInvar)