cooc_feature_image — Calculate a co-occurrence matrix and derive gray value features thereof.
The call of cooc_feature_image corresponds to the consecutive execution of the operators gen_cooc_matrix and cooc_feature_matrix. If several direction matrices of the co-occurrence matrix are to be evaluated consecutively, it is more efficient to generate the matrix via gen_cooc_matrix and then call the operator cooc_feature_matrix for the resulting matrix. The parameter Direction transfers the direction of the neighborhood in angle or 'mean'. In the case of 'mean' the mean value is calculated in all four directions.
Note that the operator cooc_feature_image only considers the given Regions and ignores any previously set domain of the input image Image.
Region to be examined.
Corresponding gray values.
Number of gray values to be distinguished (2^LdGray).
Default value: 6
List of values: 1, 2, 3, 4, 5, 6, 7, 8
Direction in which the matrix is to be calculated.
Default value: 0
List of values: 0, 45, 90, 135, 'mean'
Gray value energy.
Correlation of gray values.
Local homogeneity of gray values.
Gray value contrast.
The operator cooc_feature_image returns the value 2 (H_MSG_TRUE) if an image with defined gray values ('byte') is entered and the parameters are correct. The behavior in case of empty input (no input images available) is set via the operator set_system(::'no_object_result',<Result>:), the behavior in case of empty region is set via set_system(::'empty_region_result',<Result>:). If necessary an exception is raised.
intensity, min_max_gray, entropy_gray, select_gray