Halcon例程分析,代码如下:
dev_close_window ()
read_image (For5, 'for5')
get_image_size (For5, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_display (For5)//只可以显示图像目标
dev_set_lut ('rainbow')//设置查询表_(lut),比较费解,还要多试验。
dev_display (For5)
stop ()
dev_set_lut ('default')
dev_display (For5)
stop ()
dev_set_part (100, 100, 300, 300)//修改显示图像部分,还需要多试试参数
dev_display (For5)
新了解Halcon算子:
get_image_size (Operator)
Name
get_image_size — Return the size of an image.
Signature
get_image_size(Image : : : Width, Height)
stop (Operator)
Name
stop — Stop program execution.
Signature
stop( : : : )
程序执行时中断等待。
dev_set_lut (Operator)
Name
dev_set_lut — Set “look-up-table” (lut).
Signature
dev_set_lut( : : LutName : )
dev_set_part (Operator)
Name
dev_set_part — Modify the displayed image part.
Signature
dev_set_part( : : Row1, Column1, Row2, Column2 : )
dev_display (Operator)
Name
dev_display — Displays image objects in the current graphics window.
Signature
dev_display(Object : : : )