插值算法
在对图像进行变换时可能产生一些原图中非整数未知的点,此时需要进行插值运算来计算这一点的灰度值。Halcon中有两种常用的插值算法:最邻近插值(‘nearest_neighbor’)和双线性插值(‘bilinear’)。双线性插值效果更好,但运行时间更长。
图像的旋转
rotate_image(Image : ImageRotate : Phi, Interpolation : )
图像的镜像
mirror_image(Image : ImageMirror : Mode : )
Mode:镜像轴支持X,Y和对角线
‘column’, ‘diagonal’, ‘row’
图像的缩放
根据指定系数进行缩放
zoom_image_factor(Image : ImageZoomed : ScaleWidth, ScaleHeight, Interpolation : )
根据指定尺寸进行缩放
zoom_image_size(Image : ImageZoom : Width, Height, Interpolation : )
==Interpolation ==是选择插值算法