gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix gen_cooc_matrix (算子名称)
名称
gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix gen_cooc_matrix — Calculate the co-occurrence matrix of a region in an image.
参数签名
描述
该算子 gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix gen_cooc_matrix determines from the input
regions how often the gray values i and j are located next to
each other in a certain direction (0 , 45 ,
90 , 135 degrees), stores this number in the
co-occurrence matrix at the locations (i,j) and (j,i) (the
matrix is symmetrical), and finally scales the matrix with the
number of entries. LdGray LdGray LdGray LdGray ldGray ld_gray indicates the number of gray
values to be distinguished (namely
).
Example: Input image with gray values (scaled with LdGray LdGray LdGray LdGray ldGray ld_gray =2)
Co-occurrence matrix (not scaled):
注意
Note that 该算子 gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix gen_cooc_matrix only considers
the given 区域 区域 区域 区域 区域 区域 and ignores any previously set domain
of the input image Image Image Image Image image image .
运行信息
多线程类型:可重入(与非独占操作符并行运行)。
多线程作用域:全局(可以从任何线程调用)。
在元组级别自动并行化。
参数表
区域 区域 区域 区域 区域 区域 (input_object) region(-array) → object HRegion HObject HRegion Hobject
Region to be checked.
Image Image Image Image image image (input_object) singlechannelimage → object HImage HObject HImage Hobject (byte)
Image providing the gray values.
Matrix Matrix Matrix Matrix matrix matrix (output_object) image(-array) → object HImage HObject HImage Hobject * (real)
Co-occurrence matrix (matrices).
LdGray LdGray LdGray LdGray ldGray ld_gray (input_control) integer → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Number of gray values to be distinguished
(
).
Default:
6
List of values:
1, 2, 3, 4, 5, 6, 7, 8
Value range:
LdGray
LdGray
LdGray
LdGray
ldGray
ld_gray
(lin)
Minimum increment:
1
Recommended increment:
1
Direction Direction Direction Direction direction direction (input_control) integer → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Direction of neighbor relation.
Default:
0
List of values:
0, 45, 90, 135
结果
该算子 gen_cooc_matrix gen_cooc_matrix GenCoocMatrix GenCoocMatrix GenCoocMatrix gen_cooc_matrix 返回值 2 (
H_MSG_TRUE )
if
an image with defined gray values is entered and the parameters are
correct. The behavior in case of empty input (no input images
available) is set via 该算子
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>) .
If necessary an exception is raised.
可能的前置算子
draw_region draw_region DrawRegion DrawRegion DrawRegion draw_region ,
gen_circle gen_circle GenCircle GenCircle GenCircle gen_circle ,
gen_ellipse gen_ellipse GenEllipse GenEllipse GenEllipse gen_ellipse ,
gen_rectangle1 gen_rectangle1 GenRectangle1 GenRectangle1 GenRectangle1 gen_rectangle1 ,
gen_rectangle2 gen_rectangle2 GenRectangle2 GenRectangle2 GenRectangle2 gen_rectangle2 ,
threshold threshold Threshold Threshold Threshold threshold ,
erosion_circle erosion_circle ErosionCircle ErosionCircle ErosionCircle erosion_circle ,
binomial_filter binomial_filter BinomialFilter BinomialFilter BinomialFilter binomial_filter ,
gauss_filter gauss_filter GaussFilter GaussFilter GaussFilter gauss_filter ,
smooth_image smooth_image SmoothImage SmoothImage SmoothImage smooth_image ,
sub_image sub_image SubImage SubImage SubImage sub_image
可替代算子
cooc_feature_image cooc_feature_image CoocFeatureImage CoocFeatureImage CoocFeatureImage cooc_feature_image
参考其它
cooc_feature_matrix cooc_feature_matrix CoocFeatureMatrix CoocFeatureMatrix CoocFeatureMatrix cooc_feature_matrix
模块
Foundation