Operators |
region_features — Calculate shape features of regions.
The operator region_features calculates for each input region from Regions the indicated features (Features).
For an illustration of these features, please refer to the documentation of this chapter (Regions / Features).
Possible values for Features:
Area of the object
Row index of the center
Column index of the center
Row index of upper left corner
Column index of upper left corner
Row index of lower right corner
Column index of lower right corner
Width of the region (parallel to the coordinate axes)
Height of the region (parallel to the coordinate axes)
Ratio of the height and the width of the region (parallel to the coordinate axes)
Circularity (see circularity)
Compactness (see compactness)
Total length of contour (see operator contlength)
Convexity (see convexity)
Rectangularity (see rectangularity)
Main radius of the equivalent ellipse (see elliptic_axis)
Secondary radius of the equivalent ellipse (see elliptic_axis)
Orientation of the equivalent ellipse (see elliptic_axis)
Anisometry (see eccentricity)
Bulkiness (see operator eccentricity)
Structur Factor (see operator eccentricity)
Radius of smallest surrounding circle (see smallest_circle)
Radius of largest inner circle (see inner_circle)
Width of the largest axis-parallel rectangle that fits into the region (see inner_rectangle1)
Height of the largest axis-parallel rectangle that fits into the region (see inner_rectangle1)
Mean distance from the region border to the center (see operator roundness)
Deviation of the distance from the region border to the center (see operator roundness)
Roundness (see operator roundness)
Number of polygon sides (see operator roundness)
Number of connection components (see operator connect_and_holes)
Number of holes (see operator connect_and_holes)
Area of the holes of the object (see operator area_holes)
Maximum diameter of the region (see operator diameter_region)
Orientation of the region (see operator orientation_region)
Euler number (see operator euler_number)
Orientation of the smallest surrounding rectangle (see operator smallest_rectangle2)
Half the length of the smallest surrounding rectangle (see operator smallest_rectangle2)
Half the width of the smallest surrounding rectangle (see operator smallest_rectangle2)
Geometric moments of the region (see operator moments_region_2nd)
Geometric moments of the region (see operator moments_region_2nd)
Geometric moments of the region (see operator moments_region_2nd)
Geometric moments of the region (see operator moments_region_2nd)
Geometric moments of the region (see operator moments_region_2nd)
Geometric moments of the region (see operator moments_region_2nd_invar)
Geometric moments of the region (see operator moments_region_2nd_invar)
Geometric moments of the region (see operator moments_region_2nd_invar)
Geometric moments of the region (see operator moments_region_2nd_rel_invar)
Geometric moments of the region (see operator moments_region_2nd_rel_invar)
Geometric moments of the region (see operator moments_region_3rd)
Geometric moments of the region (see operator moments_region_3rd)
Geometric moments of the region (see operator moments_region_3rd)
Geometric moments of the region (see operator moments_region_3rd)
Geometric moments of the region (see operator moments_region_3rd_invar)
Geometric moments of the region (see operator moments_region_3rd_invar)
Geometric moments of the region (see operator moments_region_3rd_invar)
Geometric moments of the region (see operator moments_region_3rd_invar)
Geometric moments of the region (see operator moments_region_central)
Geometric moments of the region (see operator moments_region_central)
Geometric moments of the region (see operator moments_region_central)
Geometric moments of the region (see operator moments_region_central)
Geometric moments of the region (see operator moments_region_central_invar)
Geometric moments of the region (see operator moments_region_central_invar)
Geometric moments of the region (see operator moments_region_central_invar)
Geometric moments of the region (see operator moments_region_central_invar)
Several features are processed in the sequence in which they are entered.
Regions to be examined.
Shape features to be calculated.
Default value: 'area'
List of values: 'anisometry' , 'area' , 'area_holes' , 'bulkiness' , 'circularity' , 'column' , 'column1' , 'column2' , 'compactness' , 'connect_num' , 'contlength' , 'convexity' , 'dist_deviation' , 'dist_mean' , 'euler_number' , 'height' , 'holes_num' , 'inner_height' , 'inner_radius' , 'inner_width' , 'max_diameter' , 'moments_i1' , 'moments_i2' , 'moments_i3' , 'moments_i4' , 'moments_ia' , 'moments_ib' , 'moments_m02' , 'moments_m02_invar' , 'moments_m03' , 'moments_m03_invar' , 'moments_m11' , 'moments_m11_invar' , 'moments_m12' , 'moments_m12_invar' , 'moments_m20' , 'moments_m20_invar' , 'moments_m21' , 'moments_m21_invar' , 'moments_m30' , 'moments_m30_invar' , 'moments_phi1' , 'moments_phi2' , 'moments_psi1' , 'moments_psi2' , 'moments_psi3' , 'moments_psi4' , 'num_sides' , 'orientation' , 'outer_radius' , 'phi' , 'ra' , 'ratio' , 'rb' , 'rect2_len1' , 'rect2_len2' , 'rect2_phi' , 'rectangularity' , 'roundness' , 'row' , 'row1' , 'row2' , 'struct_factor' , 'width'
The calculated features.
read_image(Image,'monkey') threshold(Image,S1,160,255) connection(S1,S2) region_features(S2,['area','anisometry'],Value)
The operator region_features returns the value 2 (H_MSG_TRUE) if the input is not empty. If necessary an exception is raised.
threshold, regiongrowing, connection, runlength_features
select_shape, select_gray, shape_trans, reduce_domain, count_obj
area_center, circularity, compactness, contlength, convexity, rectangularity, elliptic_axis, eccentricity, inner_circle, smallest_circle, smallest_rectangle1, smallest_rectangle2, inner_rectangle1, roundness, connect_and_holes, area_holes, diameter_region, orientation_region, moments_region_2nd, moments_region_2nd_invar, moments_region_2nd_rel_invar, moments_region_3rd, moments_region_3rd_invar, moments_region_central, moments_region_central_invar, select_obj, select_shape
Foundation
Operators |