histo_2dimhisto_2dimHisto2dimHisto2dimhisto_2dim (算子)
名称
histo_2dimhisto_2dimHisto2dimHisto2dimhisto_2dim — 计算双通道灰度图像的直方图。
签名
描述
算子 histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim calculates the 2-dimensional
histogram of two images within RegionsRegionsRegionsRegionsregionsregions. The gray values
of channel 1 (ImageColImageColImageColImageColimageColimage_col) are interpreted as row index,
those of channel 2 (ImageRowImageRowImageRowImageRowimageRowimage_row) as column index. The gray
value at one point P(g1,g2) in the output image
Histo2DimHisto2DimHisto2DimHisto2Dimhisto2Dimhisto_2dim indicates the frequency of the gray value
combination (g1,g2) with g1 indicating the line index and g2
the column index.
注意
Note that the operator histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim only considers
the given RegionsRegionsRegionsRegionsregionsregions and ignores any previously set domain
of the input images.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
RegionsRegionsRegionsRegionsregionsregions (输入对象) region(-array) → objectHRegionHObjectHRegionHobject
Region in which the histogram is to be calculated.
ImageColImageColImageColImageColimageColimage_col (输入对象) (multichannel-)image → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1)
Channel 1.
ImageRowImageRowImageRowImageRowimageRowimage_row (输入对象) (multichannel-)image → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1)
Channel 2.
Histo2DimHisto2DimHisto2DimHisto2Dimhisto2Dimhisto_2dim (输出对象) image → objectHImageHObjectHImageHobject * (int4)
Histogram to be calculated.
示例(HDevelop)
read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)
示例(C)
read_image(&Image,"monkey");
get_domain (Image, &Domain)
gauss_filter(Image,&ImageGauss,7);
histo_2dim(Domain,Image,ImageGauss,&Histo2Dim);
set_part(WindowHandle,0,0,511,511);
disp_image(Histo2Dim,WindowHandle);
示例(HDevelop)
read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)
示例(HDevelop)
read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)
示例(HDevelop)
read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)
复杂度
If F is the plane of the region, the runtime complexity is
O(F + 256^2).
结果
算子 histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim 返回值 2 (
H_MSG_TRUE)
if both
images have defined gray values.当输入为空(无可用输入图像)时可设置行为通过算子 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>)。如有必要,则抛出异常。
可能的前趋
decompose3decompose3Decompose3Decompose3Decompose3decompose3,
decompose2decompose2Decompose2Decompose2Decompose2decompose2,
draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region
可能的后继
thresholdthresholdThresholdThresholdThresholdthreshold,
class_2dim_supclass_2dim_supClass2dimSupClass2dimSupClass2dimSupclass_2dim_sup,
pouringpouringPouringPouringPouringpouring,
local_maxlocal_maxLocalMaxLocalMaxLocalMaxlocal_max,
gray_skeletongray_skeletonGraySkeletonGraySkeletonGraySkeletongray_skeleton
替代
gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo,
gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs
另见
get_grayvalget_grayvalGetGrayvalGetGrayvalGetGrayvalget_grayval
模块
基础