ImageEn, unit ievision

TIEVisionStitcher.stitch

TIEVisionStitcher.stitch


Declaration

function stitch(images: TIEVisionVectorImageRef; out status: TIEVisionStitchingStatus; deterministic: bool32 = true): TIEVisionImage; safecall;


Description

Tries to stitch the given images.



Parameter Description
images Input images
status Status code
deterministic The stitcher algorithm is based on RANSAC, which uses a random generator to find the best matches. This method gives a different result each time. If deterministic is true, this features is disabled and you should get a consistent result each time Stitch is called


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;