工控编程吧

标题: halcon transpose_region函数介绍 [打印本页]

作者: qq263946146    时间: 2019-5-12 13:35
标题: halcon transpose_region函数介绍
transpose_region(Region : Transposed : Row, Column : )
函数相对一坐标点 Row, Column,转换区域Region ,结果保存在Transposed。

例程
read_image (Image, 'printer_chip/printer_chip_01')
threshold (Image, Region, 140, 255)
connection (Region, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 10000, 100000)
select_obj (SelectedRegions, ObjectSelected, 1)

area_center (ObjectSelected, Area, Row, Column)
transpose_region (ObjectSelected, Transposed, Row*2, Column)
dev_display (Image)
dev_display (ObjectSelected)
dev_display (Transposed)


[halcon]1[/halcon]





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