halcon 两图叠加 显示
代码
read_image (Image, 'E:/test/CameraWeldHead/二号机焊头图片.bmp')
read_image (Image1, 'E:/test/CameraWeldHead/右1.bmp')
mirror_image (Image1, ImageMirror, 'column')crop_part (Image, ImagePart1, 0, 0, 4096, 4096)
crop_part (ImageMirror, ImagePart2, 0, 0, 4096, 4096)*平移
*hom_mat2d_identity (HomMat2DIdentity)
*hom_mat2d_translate (HomMat2DIdentity, 0, 80, HomMat2DTranslate)
*affine_trans_image (ImagePart2, ImageAffineTrans, HomMat2DTranslate, 'constant', 'false')
*两图叠加
add_image (Image, Image1, ImageResult, 0.5, 0)
dev_display(ImageResult)