gray_features — Calculates gray value features for a set of regions.
gray_features has a set of regions (Regions) as input. For each of these regions the features (Features) are calculated and returned in Value. Possble values for Features:
Gray value volume of region (see area_center_gray)
Row index of the center of gravity (see area_center_gray)
Column index of the center of gravity (see area_center_gray)
Major axis of equivallent ellipse (see elliptic_axis_gray)
Minor axis of equivallent ellipse (see elliptic_axis_gray)
Orientation of equivallent ellipse (see elliptic_axis_gray)
Minimum gray value (see min_max_gray)
Maximum gray value (see min_max_gray)
Mean gray value (see intensity)
Deviation of gray values (see intensity)
Deviation from the approximating plane (see plane_deviation)
Anisotropy (see entropy_gray)
Entropy (see entropy_gray)
Fuzzy entropie of region (see fuzzy_entropy, with a fuzzy function from Apar=0 to Cpar=255)
Fuzzy perimeter of region (see fuzzy_perimeter, with a fuzzy function from Apar=0 to Cpar=255)
Mixed moments along a row (see moments_gray_plane)
Mixed moments along a column (see moments_gray_plane)
Approximating plane, parameter Alpha (see moments_gray_plane)
Approximating plane, parameter Beta (see moments_gray_plane)
Several features are processed in the order in which they are entered.
Note that the operator gray_features only considers the given Regions and ignores any previously set domain of the input image Image.
Regions to be examined.
Gray value image.
Names of the features.
Default value: 'mean'
List of values: 'alpha', 'anisotropy', 'area', 'beta', 'column', 'deviation', 'entropy', 'fuzzy_entropy', 'fuzzy_perimeter', 'max', 'mean', 'min', 'moments_column', 'moments_row', 'phi', 'plane_deviation', 'ra', 'rb', 'row'
Value sof the features.
If F is the area of the region and N the number of features the runtime complexity is O(F * N).
The operator gray_features returns the value 2 (H_MSG_TRUE) if the input image has the defined gray values and the parameters are correct. If necessary an exception is raised.
connection, mean_image, entropy_image, sobel_amp, median_separate
select_gray, shape_trans, reduce_domain, count_obj
select_gray, deviation_image, entropy_gray, intensity, mean_image, min_max_gray, select_obj