工控编程吧

标题: halcon histo_2dim函数计算 [打印本页]

作者: qq263946146    时间: 2019-5-9 16:41
标题: halcon histo_2dim函数计算
histo_2dim(Regions, ImageCol, ImageRow : Histo2Dim : : )
histo_2dim计算区域Regions内两幅图像ImageCol, ImageRow的二维直方图。
通道1 (ImageCol)的灰度值解释为行索引,通道2 (ImageRow)的灰度值解释为列索引。


输出图像 Histo2Dim 点P(g1,g2)的灰度值表示(g1,g2)灰度值组合的频率,
g1表示行索引,g2表示列索引。
例程
read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)


Regions, ImageCol, ImageRow 为输入的区域与两图像,
Histo2Dim 为计算出的直方图。




















欢迎光临 工控编程吧 (https://www.gkbc8.com/) Powered by Discuz! X3.4