zw版【转发·台湾nvp系列Delphi例程】HALCON EdgesImage

zw版【转发·台湾nvp系列Delphi例程】HALCON EdgesImage


procedure TForm1.Button1Click(Sender: TObject);
var
img0, img1, Amp : HImageX;
w, h : OleVariant;
begin
img0 := CoHImageX.Create;
img0.ReadImage('fabrik');
w := img0.GetImageSize(h);
HWindowXCtrl1.HalconWindow.SetPart(0, 0, h - 1, w - 1);
img0.DispObj(HWindowXCtrl1.HalconWindow);
img1 := img0.EdgesImage(Amp, 'lanser2', 0.5, 'none', -1, -1);
HWindowXCtrl2.HalconWindow.SetPart(0, 0, h - 1, w - 1);
img1.DispObj(HWindowXCtrl2.HalconWindow);
end;

posted @ 2015-10-01 16:23  统领  阅读(325)  评论(0编辑  收藏  举报