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