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

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;

上一篇:[原创]java WEB学习笔记27:深入理解面向接口编程


下一篇:c++引擎开发