前言
halcon会因为抓取的Image规格过大而导致二次开发运行卡顿,所以需要对抓取的Image进行分辨率的降低,通过相关的内容简单做一个资料。
一、主体
代码:
read_image (Image, 'C:/Users/yinda/Desktop/1.tif')
dev_close_window ()
get_image_size (Image, Width, Height)
*'bicubic', 双三次差值
*'bilinear', 双线性插值
*'constant', 连续插值
*'nearest_neighbor', 最近邻插值算法
*'weighted'宽度
*640, 480,是根据自身Image规格写入,也可以weight/2
zoom_image_size (Image, ImageZoom, 640, 480, 'bicubic')
dev_display (Image)
dev_display (ImageZoom)