Halcon學習之五:有關圖像的定義域的函數
来源:互联网 发布:图片欣赏软件 编辑:程序博客网 时间:2024/04/29 14:56
http://blog.csdn.net/xinrui_hhuc/article/details/6120785
1、add_channels ( Regions,
將Image圖像的灰度值賦給區域Regions,得到Gray
2、change_domain ( Image,
改變Image圖像的定義域
3、full_domain ( Image :
擴張Image圖像的定義域到最大。
4、get_domain ( Image : Domain
得到Image圖像的定義域
5、rectangle1_domain ( Image :
Column2 : )
根據矩形坐標(Row1, Column1)、(Row2,
6、reduce_domain ( Image,
得到圖像Image相對於Region區域的圖像
例程:
- read_image (Image, 'G:/Halcon/
機器視覺/images/brycecanyon1.png' ) - * 打開一個新的窗體
- dev_open_window (0, 0, -1, -1,
'black', WindowHandle) - * 顯示圖像
- dev_display (Image)
- * 選出兩個新的Region
- draw_region (region1,
WindowHandle) - draw_region (region2,
WindowHandle) - add_channels (region1, Image,
image_region1) - change_domain (Image, region2,
ImageNew) - full_domain (image_region1,
ImageFull) - rectangle1_domain (ImageFull,
ImageReduced, 100, 100, 300, 500) - get_domain (image_region1,
Domain) - reduce_domain (Image, region2,
ReducedImage)
處理效果如下圖所示:
- Halcon學習之五:有關圖像的定義域的函數
- Halcon學習之四:有關圖像生成的函數
- Halcon學習之三:有關圖像通道的函數
- Halcon学习之五:有关图像的定义域的函数
- Halcon学习之五:有关图像的定义域的函数
- Halcon學習之六:獲取Image圖像中Region區域的特征參數
- Halcon學習之計數
- Halcon學習之邊緣檢測函數
- Halcon學習之兩幅圖像處理
- Halcon學習之七:改變圖像的現實方式和大小
- 机器视觉HALCON的成长之路...
- halcon之屌炸天的自标定
- halcon之屌炸天的自标定
- HALCON学习之select_shape的Feature详解
- Halcon學習之八:圖像區域疊加與繪制
- Halcon學習之文本操作
- Halcon學習之找出焊接點
- Halcon學習之賦值
- Halcon學習之七:改變圖像的現實方式和大小
- NSObject控件树继承关系
- 内核编译错误: make: *** [.tmp_vmlinux1] Error 1
- Halcon學習之六:獲取Image圖像中Region區域的特征參數
- GCC编译程序时的四个阶段说明!
- Halcon學習之五:有關圖像的定義域的函數
- 老同学
- Halcon學習之四:有關圖像生成的函數
- 相除的数值保留小数位
- 认识不足
- 改变linux终端显示颜色
- Halcon學習之三:有關圖像通道的函數
- NTC温度转换公式
- cocos2d-x初探学习笔记(23)--其他(屏幕旋转,schedule,系统语言)