halcon锐化、增强灰度、镜像、反转、旋转、缩放

read_image (Image, ‘printer_chip/printer_chip_01’)
*锐化
emphasize (Image, ImageEmphasize, 7, 7, 1)
*亮度调节
illuminate (ImageEmphasize, ImageIlluminate, 101, 101, 0.7)
*增强(灰度)
scale_image (ImageIlluminate, ImageScaled, 0.01, 0)
*反转
invert_image (ImageScaled, ImageInvert)

*彩色转灰
rgb1_to_gray (ImageInvert, GrayImage)
*镜像
mirror_image (GrayImage, ImageMirror, ‘row’)
*旋转
rotate_image (ImageMirror, ImageRotate, 90, ‘constant’)
*缩放尺寸
zoom_image_size (ImageRotate, ImageZoom, 512, 512, ‘constant’)
halcon锐化、增强灰度、镜像、反转、旋转、缩放_第1张图片

你可能感兴趣的:(halcon)