标签:
zw版【转发·台湾nvp系列Delphi例程】HALCON BitXor
procedure TForm1.Button1Click(Sender: TObject);
var
image0, image1, result : HImageX;
w, h : OleVariant;
begin
image0 := CoHImageX.Create;
image0.ReadImage(‘razors1‘);
w := image0.GetImageSize(h);
HWindowXCtrl1.HalconWindow.SetPart(0, 0, h - 1, w - 1);
image0.DispObj(HWindowXCtrl1.HalconWindow);
image1 := CoHImageX.Create;
image1.ReadImage(‘razors2‘);
w := image1.GetImageSize(h);
HWindowXCtrl2.HalconWindow.SetPart(0, 0, h - 1, w - 1);
image1.DispObj(HWindowXCtrl2.HalconWindow);
result := image0.BitXor(image1);
w := result.GetImageSize(h);
HWindowXCtrl3.HalconWindow.SetPart(0, 0, h - 1, w - 1);
result.DispObj(HWindowXCtrl3.HalconWindow);
end;
zw版【转发·台湾nvp系列Delphi例程】HALCON BitXor
标签:
原文地址:http://www.cnblogs.com/ziwang/p/4851131.html