复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32****对图像进行线性灰度变换******* dev_clear_window () dev_close_window () read_image (Image, 'C:/Users/Public/Documents/MVTec/HALCON-18.11-Steady/examples/images/lcd/tft_cells_01.png') get_image_size (Image, Width, Height) dev_open_window (0, 0, Width, Height, 'black', WindowHandle) dev_display (Image) *灰度转化 rgb1_to_gray (Image, GrayImage) GrayImage_1:= GrayImage *********************************************************************** *计算图像的灰度值分布 gray_histo (GrayImage, GrayImage, AbsoluteHisto, RelativeHisto) *获得灰度直方图 gen_region_histo (Region, AbsoluteHisto, 255, 255, 1) *********************************************************************** dev_close_window () dev_open_window (0, 0, Width, Height, 'black', WindowHandle) dev_display (Image) ************************************************************************ *直方图均衡化 equ_histo_image (GrayImage_1, ImageEquHisto) gray_histo (Region, ImageEquHisto, AbsoluteHisto1, RelativeHisto1) *获得灰度直方图 gen_region_histo (Region1, AbsoluteHisto1, 255, 255, 1)
————————————————
版权声明:本文为CSDN博主「德鹏君」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/cuhinzozfi/article/details/90678510
最后
以上就是机智嚓茶最近收集整理的关于halcon-直方图均衡的全部内容,更多相关halcon-直方图均衡内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复