cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImagecooc_feature_image (算子)
名称
cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImagecooc_feature_image — 计算共生矩阵并导出其灰度值特征。
签名
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)
def cooc_feature_image(regions: HObject, image: HObject, ld_gray: int, direction: Union[int, str]) -> Tuple[Sequence[float], Sequence[float], Sequence[float], Sequence[float]]
def cooc_feature_image_s(regions: HObject, image: HObject, ld_gray: int, direction: Union[int, str]) -> Tuple[float, float, float, float]
描述
The call of cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImagecooc_feature_image corresponds to the consecutive
execution of the operators gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrixgen_cooc_matrix and
cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_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_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrixgen_cooc_matrix and
then call the operator cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix for the resulting
matrix. The parameter DirectionDirectionDirectionDirectiondirectiondirection transfers the direction
of the neighborhood in angle or 'mean'"mean""mean""mean""mean""mean". In the case of
'mean'"mean""mean""mean""mean""mean" the mean value is calculated in all four
directions.
注意
Note that the operator cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImagecooc_feature_image only considers
the given RegionsRegionsRegionsRegionsregionsregions and ignores any previously set domain
of the input image ImageImageImageImageimageimage。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
参数
RegionsRegionsRegionsRegionsregionsregions (输入对象) region(-array) → objectHRegionHObjectHRegionHobject
Region to be examined.
ImageImageImageImageimageimage (输入对象) singlechannelimage → objectHImageHObjectHImageHobject (byte)
Corresponding gray values.
LdGrayLdGrayLdGrayLdGrayldGrayld_gray (输入控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of gray values to be distinguished
().
默认值:
6
值列表:
1, 2, 3, 4, 5, 6, 7, 8
DirectionDirectionDirectionDirectiondirectiondirection (输入控制) integer → HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)
Direction in which the matrix is to be calculated.
默认值:
0
值列表:
0, 45, 90, 135, 'mean'"mean""mean""mean""mean""mean"
EnergyEnergyEnergyEnergyenergyenergy (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Gray value energy.
CorrelationCorrelationCorrelationCorrelationcorrelationcorrelation (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Correlation of gray values.
HomogeneityHomogeneityHomogeneityHomogeneityhomogeneityhomogeneity (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Local homogeneity of gray values.
ContrastContrastContrastContrastcontrastcontrast (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Gray value contrast.
结果
算子 cooc_feature_imagecooc_feature_imageCoocFeatureImageCoocFeatureImageCoocFeatureImagecooc_feature_image 返回值 2 (
H_MSG_TRUE)
if an
image with defined gray values ('byte'"byte""byte""byte""byte""byte") is entered and the
parameters are correct.当输入为空(无可用输入图像)时可设置行为通过算子 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>)set_system("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>)set_system("empty_region_result",<Result>)。如有必要,则抛出异常。
可能的前趋
gen_cooc_matrixgen_cooc_matrixGenCoocMatrixGenCoocMatrixGenCoocMatrixgen_cooc_matrix
替代
cooc_feature_matrixcooc_feature_matrixCoocFeatureMatrixCoocFeatureMatrixCoocFeatureMatrixcooc_feature_matrix
另见
intensityintensityIntensityIntensityIntensityintensity,
min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray,
entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray,
select_grayselect_graySelectGraySelectGraySelectGrayselect_gray
模块
基础