halcon-add_image图像相加
作者:互联网
在HDevelop中
tuzi.jpg
tuzi1.jpg
read_image (Image, 'D:/bb/tu/tuzi.jpg') read_image (Image1, 'D:/bb/tu/tuzi1.jpg') add_image (Image, Image1, ImageSub, 0.7, 0) *图像相加 * add_image(ImageMinuend , ImageSubtrahend , ImageSub, Mult , Add) *第一个参数是被加图像,第二个参数是加数图像,第三个参数是结果图像,第四个参数是乘数因子,第五个参数是补充值 *算子可以用以下计算式子表达: * ImageSub =( ImageMinuend + ImageSubtrahend ) *Mult + Add dev_open_window(10,10,650,435,'black',WindowHandle) dev_display (ImageSub)
在QtCreator中
HObject ho_Image, ho_Image1, ho_ImageSub; HTuple hv_WindowHandle;
ReadImage(&ho_Image, "D:/bb/tu/tuzi.jpg"); ReadImage(&ho_Image1, "D:/bb/tu/tuzi1.jpg"); AddImage(ho_Image, ho_Image1, &ho_ImageSub, 0.7, 0); //图像相加 //add_image (ImageMinuend, ImageSubtrahend, ImageSub, Mult, Add) //第一个参数是被加图像,第二个参数是加数图像,第三个参数是结果图像,第四个参数是乘数因子,第五个参数是补充值 //算子可以用以下计算式子表达: //ImageSub =( ImageMinuend + ImageSubtrahend ) *Mult + Add SetWindowAttr("background_color","black"); OpenWindow(10,10,650,435,0,"visible","",&hv_WindowHandle); DispObj(ho_ImageSub, hv_WindowHandle);
标签:ImageSub,image,jpg,halcon,add,参数,ho,图像 来源: https://www.cnblogs.com/liming19680104/p/15921434.html