工控编程吧
标题:
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