cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage (Operator)
Name
cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage
— Calculate a co-occurrence matrix and derive gray value features thereof.
Signature
Herror cooc_feature_image (const Hobject Regions , const Hobject Image , const Hlong LdGray , const Hlong Direction , double* Energy , double* Correlation , double* Homogeneity , double* Contrast )
Herror T_cooc_feature_image (const Hobject Regions , const Hobject Image , const Htuple LdGray , const Htuple Direction , Htuple* Energy , Htuple* Correlation , Htuple* Homogeneity , Htuple* Contrast )
void CoocFeatureImage (const HObject& Regions , const HObject& Image , const HTuple& LdGray , const HTuple& Direction , HTuple* Energy , HTuple* Correlation , HTuple* Homogeneity , HTuple* Contrast )
HTuple HImage ::CoocFeatureImage (const HRegion& Regions , Hlong LdGray , const HTuple& Direction , HTuple* Correlation , HTuple* Homogeneity , HTuple* Contrast ) const
double HImage ::CoocFeatureImage (const HRegion& Regions , Hlong LdGray , Hlong Direction , double* Correlation , double* Homogeneity , double* Contrast ) const
HTuple HRegion ::CoocFeatureImage (const HImage& Image , Hlong LdGray , const HTuple& Direction , HTuple* Correlation , HTuple* Homogeneity , HTuple* Contrast ) const
double HRegion ::CoocFeatureImage (const HImage& Image , Hlong LdGray , Hlong Direction , double* Correlation , double* Homogeneity , double* Contrast ) const
static void HOperatorSet .CoocFeatureImage (HObject regions , HObject image , HTuple ldGray , HTuple direction , out HTuple energy , out HTuple correlation , out HTuple homogeneity , out HTuple contrast )
HTuple HImage .CoocFeatureImage (HRegion regions , int ldGray , HTuple direction , out HTuple correlation , out HTuple homogeneity , out HTuple contrast )
double HImage .CoocFeatureImage (HRegion regions , int ldGray , int direction , out double correlation , out double homogeneity , out double contrast )
HTuple HRegion .CoocFeatureImage (HImage image , int ldGray , HTuple direction , out HTuple correlation , out HTuple homogeneity , out HTuple contrast )
double HRegion .CoocFeatureImage (HImage image , int ldGray , int direction , out double correlation , out double homogeneity , out double contrast )
Description
The call of cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage CoocFeatureImage
corresponds to the consecutive
execution of the operators gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix
and
cooc_feature_matrix cooc_feature_matrix CoocFeatureMatrix CoocFeatureMatrix CoocFeatureMatrix
. 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 gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix
and
then call the operator cooc_feature_matrix cooc_feature_matrix CoocFeatureMatrix CoocFeatureMatrix CoocFeatureMatrix
for the resulting
matrix. The parameter Direction Direction Direction Direction direction
transfers the direction
of the neighborhood in angle or 'mean' "mean" "mean" "mean" "mean" . In the case of
'mean' "mean" "mean" "mean" "mean" the mean value is calculated in all four
directions.
Attention
Note that the operator cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage CoocFeatureImage
only considers
the given Regions Regions Regions Regions regions
and ignores any previously set domain
of the input image Image Image Image Image image
.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Parameters
Regions Regions Regions Regions regions
(input_object) region(-array) →
object HRegion HRegion Hobject
Region to be examined.
Image Image Image Image image
(input_object) singlechannelimage →
object HImage HImage Hobject (byte)
Corresponding gray values.
LdGray LdGray LdGray LdGray ldGray
(input_control) integer →
HTuple HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Number of gray values to be distinguished
(
).
Default value: 6
List of values: 1, 2, 3, 4, 5, 6, 7, 8
Direction Direction Direction Direction direction
(input_control) integer →
HTuple HTuple Htuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)
Direction in which the matrix is to be calculated.
Default value: 0
List of values: 0, 45, 90, 135, 'mean' "mean" "mean" "mean" "mean"
Energy Energy Energy Energy energy
(output_control) real(-array) →
HTuple HTuple Htuple (real) (double ) (double ) (double )
Gray value energy.
Correlation Correlation Correlation Correlation correlation
(output_control) real(-array) →
HTuple HTuple Htuple (real) (double ) (double ) (double )
Correlation of gray values.
Homogeneity Homogeneity Homogeneity Homogeneity homogeneity
(output_control) real(-array) →
HTuple HTuple Htuple (real) (double ) (double ) (double )
Local homogeneity of gray values.
Contrast Contrast Contrast Contrast contrast
(output_control) real(-array) →
HTuple HTuple Htuple (real) (double ) (double ) (double )
Gray value contrast.
Result
The operator cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage CoocFeatureImage
returns the value 2 (H_MSG_TRUE) if an
image with defined gray values ('byte' "byte" "byte" "byte" "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>:) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>)
, the behavior
in case of empty region is set via
set_system(::'empty_region_result',<Result>:) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>)
. If
necessary an exception is raised.
Possible Predecessors
gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix
Alternatives
cooc_feature_matrix cooc_feature_matrix CoocFeatureMatrix CoocFeatureMatrix CoocFeatureMatrix
See also
intensity intensity Intensity Intensity Intensity
,
min_max_gray min_max_gray MinMaxGray MinMaxGray MinMaxGray
,
entropy_gray entropy_gray EntropyGray EntropyGray EntropyGray
,
select_gray select_gray SelectGray SelectGray SelectGray
Module
Foundation