ImageEn, unit ievision

TIEVisionLibrary.createStitcher

TIEVisionLibrary.createStitcher


Declaration

function createStitcher(tryUseGPU: bool32 = false): TIEVisionStitcher; safecall;


Description

Creates a stitcher object.




Demo

Demo  Demos\IEVision\Stitcher\Stitcher.dpr


Example

var
  images: TIEVisionVectorImageRef;
  pano: TIEVisionImage;
  status: TIEVisionStitchingStatus;
begin
  images := IEVisionLib.createVectorImageRef();
  images.push_back(IEVisionLib.createImage('image1.jpg'));
  images.push_back(IEVisionLib.createImage('image2.jpg'));
  images.push_back(IEVisionLib.createImage('image3.jpg'));

  pano := IEVisionLib.createStitcher().stitch(images, status);

  if status = ievSSOK then
  begin
    ImageEnView.IEBitmap.AssignIEVisionImage(pano);
    ImageEnView.Update;
  end
end;