This chapter contains operators that allow you to access the different
features of regions.
In the following, the available features are illustrated.
'area'
"area"
"area"
"area"
"area"
"area"
:
Area of the object
'row'
"row"
"row"
"row"
"row"
"row"
:
Row index of the center
'column'
"column"
"column"
"column"
"column"
"column"
:
Column index of the center
'row1'
"row1"
"row1"
"row1"
"row1"
"row1"
:
Row index of upper left corner
'column1'
"column1"
"column1"
"column1"
"column1"
"column1"
:
Column index of upper left corner
'row2'
"row2"
"row2"
"row2"
"row2"
"row2"
:
Row index of lower right corner
'column2'
"column2"
"column2"
"column2"
"column2"
"column2"
:
Column index of lower right corner
'width'
"width"
"width"
"width"
"width"
"width"
:
Width of the region (parallel to the coordinate axis)
'height'
"height"
"height"
"height"
"height"
"height"
:
Height of the region (parallel to the coordinate axis)
'circularity'
"circularity"
"circularity"
"circularity"
"circularity"
"circularity"
:
Circularity (see circularity
circularity
Circularity
Circularity
Circularity
circularity
)
'compactness'
"compactness"
"compactness"
"compactness"
"compactness"
"compactness"
:
Compactness (see compactness
compactness
Compactness
Compactness
Compactness
compactness
)
'contlength'
"contlength"
"contlength"
"contlength"
"contlength"
"contlength"
:
Total length of contour (see operator contlength
contlength
Contlength
Contlength
Contlength
contlength
)
'convexity'
"convexity"
"convexity"
"convexity"
"convexity"
"convexity"
:
Convexity (see convexity
convexity
Convexity
Convexity
Convexity
convexity
)
'rectangularity'
"rectangularity"
"rectangularity"
"rectangularity"
"rectangularity"
"rectangularity"
:
Rectangularity (see rectangularity
rectangularity
Rectangularity
Rectangularity
Rectangularity
rectangularity
)
'ra'
"ra"
"ra"
"ra"
"ra"
"ra"
:
Main radius of the equivalent ellipse (see elliptic_axis
elliptic_axis
EllipticAxis
EllipticAxis
EllipticAxis
elliptic_axis
)
'rb'
"rb"
"rb"
"rb"
"rb"
"rb"
:
Secondary radius of the equivalent ellipse (see elliptic_axis
elliptic_axis
EllipticAxis
EllipticAxis
EllipticAxis
elliptic_axis
)
'phi'
"phi"
"phi"
"phi"
"phi"
"phi"
:
Orientation of the equivalent ellipse
see elliptic_axis
elliptic_axis
EllipticAxis
EllipticAxis
EllipticAxis
elliptic_axis
)
'anisometry'
"anisometry"
"anisometry"
"anisometry"
"anisometry"
"anisometry"
:
Anisometry (see eccentricity
eccentricity
Eccentricity
Eccentricity
Eccentricity
eccentricity
)
'bulkiness'
"bulkiness"
"bulkiness"
"bulkiness"
"bulkiness"
"bulkiness"
:
Bulkiness (see operator eccentricity
eccentricity
Eccentricity
Eccentricity
Eccentricity
eccentricity
)
'struct_factor'
"struct_factor"
"struct_factor"
"struct_factor"
"struct_factor"
"struct_factor"
:
Structure Factor (see operator eccentricity
eccentricity
Eccentricity
Eccentricity
Eccentricity
eccentricity
)
'outer_radius'
"outer_radius"
"outer_radius"
"outer_radius"
"outer_radius"
"outer_radius"
:
Radius of smallest surrounding circle (see smallest_circle
smallest_circle
SmallestCircle
SmallestCircle
SmallestCircle
smallest_circle
)
'inner_radius'
"inner_radius"
"inner_radius"
"inner_radius"
"inner_radius"
"inner_radius"
:
Radius of largest inner circle (see inner_circle
inner_circle
InnerCircle
InnerCircle
InnerCircle
inner_circle
)
'inner_width'
"inner_width"
"inner_width"
"inner_width"
"inner_width"
"inner_width"
:
Width of the largest axis-parallel rectangle that fits into the region
(see inner_rectangle1
inner_rectangle1
InnerRectangle1
InnerRectangle1
InnerRectangle1
inner_rectangle1
)
'inner_height'
"inner_height"
"inner_height"
"inner_height"
"inner_height"
"inner_height"
:
Height of the largest axis-parallel rectangle that fits into the region
(see inner_rectangle1
inner_rectangle1
InnerRectangle1
InnerRectangle1
InnerRectangle1
inner_rectangle1
)
'dist_mean'
"dist_mean"
"dist_mean"
"dist_mean"
"dist_mean"
"dist_mean"
:
Mean distance from the region border to the center (see operator
roundness
roundness
Roundness
Roundness
Roundness
roundness
)
'dist_deviation'
"dist_deviation"
"dist_deviation"
"dist_deviation"
"dist_deviation"
"dist_deviation"
:
Deviation of the distance from the region border to the center
(see operator roundness
roundness
Roundness
Roundness
Roundness
roundness
)
'roundness'
"roundness"
"roundness"
"roundness"
"roundness"
"roundness"
:
Roundness (see operator roundness
roundness
Roundness
Roundness
Roundness
roundness
)
'num_sides'
"num_sides"
"num_sides"
"num_sides"
"num_sides"
"num_sides"
:
Number of polygon sides (see operator roundness
roundness
Roundness
Roundness
Roundness
roundness
)
'connect_num'
"connect_num"
"connect_num"
"connect_num"
"connect_num"
"connect_num"
:
Number of connection components (see operator connect_and_holes
connect_and_holes
ConnectAndHoles
ConnectAndHoles
ConnectAndHoles
connect_and_holes
)
'holes_num'
"holes_num"
"holes_num"
"holes_num"
"holes_num"
"holes_num"
:
Number of holes (see operator connect_and_holes
connect_and_holes
ConnectAndHoles
ConnectAndHoles
ConnectAndHoles
connect_and_holes
)
'area_holes'
"area_holes"
"area_holes"
"area_holes"
"area_holes"
"area_holes"
:
Area of the holes of the object (see operator area_holes
area_holes
AreaHoles
AreaHoles
AreaHoles
area_holes
)
'max_diameter'
"max_diameter"
"max_diameter"
"max_diameter"
"max_diameter"
"max_diameter"
:
Maximum diameter of the region (see operator diameter_region
diameter_region
DiameterRegion
DiameterRegion
DiameterRegion
diameter_region
)
'orientation'
"orientation"
"orientation"
"orientation"
"orientation"
"orientation"
:
Orientation of the region (see operator orientation_region
orientation_region
OrientationRegion
OrientationRegion
OrientationRegion
orientation_region
)
'euler_number'
"euler_number"
"euler_number"
"euler_number"
"euler_number"
"euler_number"
:
Euler number (see operator euler_number
euler_number
EulerNumber
EulerNumber
EulerNumber
euler_number
)
'rect2_phi'
"rect2_phi"
"rect2_phi"
"rect2_phi"
"rect2_phi"
"rect2_phi"
:
Orientation of the smallest surrounding rectangle (see operator
smallest_rectangle2
smallest_rectangle2
SmallestRectangle2
SmallestRectangle2
SmallestRectangle2
smallest_rectangle2
)
'rect2_len1'
"rect2_len1"
"rect2_len1"
"rect2_len1"
"rect2_len1"
"rect2_len1"
:
Half the length of the smallest surrounding rectangle
(see operator smallest_rectangle2
smallest_rectangle2
SmallestRectangle2
SmallestRectangle2
SmallestRectangle2
smallest_rectangle2
)
'rect2_len2'
"rect2_len2"
"rect2_len2"
"rect2_len2"
"rect2_len2"
"rect2_len2"
:
Half the width of the smallest surrounding rectangle
(see operator smallest_rectangle2
smallest_rectangle2
SmallestRectangle2
SmallestRectangle2
SmallestRectangle2
smallest_rectangle2
)
'moments_m11'
"moments_m11"
"moments_m11"
"moments_m11"
"moments_m11"
"moments_m11"
:
Geometric moments of the region
(see operator moments_region_2nd
moments_region_2nd
MomentsRegion2nd
MomentsRegion2nd
MomentsRegion2nd
moments_region_2nd
)
'moments_m20'
"moments_m20"
"moments_m20"
"moments_m20"
"moments_m20"
"moments_m20"
:
Geometric moments of the region
(see operator moments_region_2nd
moments_region_2nd
MomentsRegion2nd
MomentsRegion2nd
MomentsRegion2nd
moments_region_2nd
)
'moments_m02'
"moments_m02"
"moments_m02"
"moments_m02"
"moments_m02"
"moments_m02"
:
Geometric moments of the region
(see operator moments_region_2nd
moments_region_2nd
MomentsRegion2nd
MomentsRegion2nd
MomentsRegion2nd
moments_region_2nd
)
'moments_ia'
"moments_ia"
"moments_ia"
"moments_ia"
"moments_ia"
"moments_ia"
:
Geometric moments of the region
(see operator moments_region_2nd
moments_region_2nd
MomentsRegion2nd
MomentsRegion2nd
MomentsRegion2nd
moments_region_2nd
)
'moments_ib'
"moments_ib"
"moments_ib"
"moments_ib"
"moments_ib"
"moments_ib"
:
Geometric moments of the region
(see operator moments_region_2nd
moments_region_2nd
MomentsRegion2nd
MomentsRegion2nd
MomentsRegion2nd
moments_region_2nd
)
'moments_m11_invar'
"moments_m11_invar"
"moments_m11_invar"
"moments_m11_invar"
"moments_m11_invar"
"moments_m11_invar"
:
Geometric moments of the region
(see operator moments_region_2nd_invar
moments_region_2nd_invar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
moments_region_2nd_invar
)
'moments_m20_invar'
"moments_m20_invar"
"moments_m20_invar"
"moments_m20_invar"
"moments_m20_invar"
"moments_m20_invar"
:
Geometric moments of the region
(see operator moments_region_2nd_invar
moments_region_2nd_invar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
moments_region_2nd_invar
)
'moments_m02_invar'
"moments_m02_invar"
"moments_m02_invar"
"moments_m02_invar"
"moments_m02_invar"
"moments_m02_invar"
:
Geometric moments of the region
(see operator moments_region_2nd_invar
moments_region_2nd_invar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
MomentsRegion2ndInvar
moments_region_2nd_invar
)
'moments_phi1'
"moments_phi1"
"moments_phi1"
"moments_phi1"
"moments_phi1"
"moments_phi1"
:
Geometric moments of the region
(see operator moments_region_2nd_rel_invar
moments_region_2nd_rel_invar
MomentsRegion2ndRelInvar
MomentsRegion2ndRelInvar
MomentsRegion2ndRelInvar
moments_region_2nd_rel_invar
)
'moments_phi2'
"moments_phi2"
"moments_phi2"
"moments_phi2"
"moments_phi2"
"moments_phi2"
:
Geometric moments of the region
(see operator moments_region_2nd_rel_invar
moments_region_2nd_rel_invar
MomentsRegion2ndRelInvar
MomentsRegion2ndRelInvar
MomentsRegion2ndRelInvar
moments_region_2nd_rel_invar
)
'moments_m21'
"moments_m21"
"moments_m21"
"moments_m21"
"moments_m21"
"moments_m21"
:
Geometric moments of the region
(see operator moments_region_3rd
moments_region_3rd
MomentsRegion3rd
MomentsRegion3rd
MomentsRegion3rd
moments_region_3rd
)
'moments_m12'
"moments_m12"
"moments_m12"
"moments_m12"
"moments_m12"
"moments_m12"
:
Geometric moments of the region
(see operator moments_region_3rd
moments_region_3rd
MomentsRegion3rd
MomentsRegion3rd
MomentsRegion3rd
moments_region_3rd
)
'moments_m03'
"moments_m03"
"moments_m03"
"moments_m03"
"moments_m03"
"moments_m03"
:
Geometric moments of the region
(see operator moments_region_3rd
moments_region_3rd
MomentsRegion3rd
MomentsRegion3rd
MomentsRegion3rd
moments_region_3rd
)
'moments_m30'
"moments_m30"
"moments_m30"
"moments_m30"
"moments_m30"
"moments_m30"
:
Geometric moments of the region
(see operator moments_region_3rd
moments_region_3rd
MomentsRegion3rd
MomentsRegion3rd
MomentsRegion3rd
moments_region_3rd
)
'moments_m21_invar'
"moments_m21_invar"
"moments_m21_invar"
"moments_m21_invar"
"moments_m21_invar"
"moments_m21_invar"
:
Geometric moments of the region
(see operator moments_region_3rd_invar
moments_region_3rd_invar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
moments_region_3rd_invar
)
'moments_m12_invar'
"moments_m12_invar"
"moments_m12_invar"
"moments_m12_invar"
"moments_m12_invar"
"moments_m12_invar"
:
Geometric moments of the region
(see operator moments_region_3rd_invar
moments_region_3rd_invar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
moments_region_3rd_invar
)
'moments_m03_invar'
"moments_m03_invar"
"moments_m03_invar"
"moments_m03_invar"
"moments_m03_invar"
"moments_m03_invar"
:
Geometric moments of the region
(see operator moments_region_3rd_invar
moments_region_3rd_invar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
moments_region_3rd_invar
)
'moments_m30_invar'
"moments_m30_invar"
"moments_m30_invar"
"moments_m30_invar"
"moments_m30_invar"
"moments_m30_invar"
:
Geometric moments of the region
(see operator moments_region_3rd_invar
moments_region_3rd_invar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
MomentsRegion3rdInvar
moments_region_3rd_invar
)
'moments_i1'
"moments_i1"
"moments_i1"
"moments_i1"
"moments_i1"
"moments_i1"
:
Geometric moments of the region
(see operator moments_region_central
moments_region_central
MomentsRegionCentral
MomentsRegionCentral
MomentsRegionCentral
moments_region_central
)
'moments_i2'
"moments_i2"
"moments_i2"
"moments_i2"
"moments_i2"
"moments_i2"
:
Geometric moments of the region
(see operator moments_region_central
moments_region_central
MomentsRegionCentral
MomentsRegionCentral
MomentsRegionCentral
moments_region_central
)
'moments_i3'
"moments_i3"
"moments_i3"
"moments_i3"
"moments_i3"
"moments_i3"
:
Geometric moments of the region
(see operator moments_region_central
moments_region_central
MomentsRegionCentral
MomentsRegionCentral
MomentsRegionCentral
moments_region_central
)
'moments_i4'
"moments_i4"
"moments_i4"
"moments_i4"
"moments_i4"
"moments_i4"
:
Geometric moments of the region
(see operator moments_region_central
moments_region_central
MomentsRegionCentral
MomentsRegionCentral
MomentsRegionCentral
moments_region_central
)
'moments_psi1'
"moments_psi1"
"moments_psi1"
"moments_psi1"
"moments_psi1"
"moments_psi1"
:
Geometric moments of the region
(see operator moments_region_central_invar
moments_region_central_invar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
moments_region_central_invar
)
'moments_psi2'
"moments_psi2"
"moments_psi2"
"moments_psi2"
"moments_psi2"
"moments_psi2"
:
Geometric moments of the region
(see operator moments_region_central_invar
moments_region_central_invar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
moments_region_central_invar
)
'moments_psi3'
"moments_psi3"
"moments_psi3"
"moments_psi3"
"moments_psi3"
"moments_psi3"
:
Geometric moments of the region
(see operator moments_region_central_invar
moments_region_central_invar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
moments_region_central_invar
)
'moments_psi4'
"moments_psi4"
"moments_psi4"
"moments_psi4"
"moments_psi4"
"moments_psi4"
:
Geometric moments of the region
(see operator moments_region_central_invar
moments_region_central_invar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
MomentsRegionCentralInvar
moments_region_central_invar
)