ImageEn, unit ievision

TIEVisionLibrary.createStitcher

TIEVisionLibrary.createStitcher


Declaration

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


Description

Create a stitcher object.
Parameter Description
tryUseGPU If supported, the GPU will be used to improve performance
mode The stitching mode to use (ievSTITCH_PANORAMA for photos or ievSTITCH_SCAN for scanned images)



Note: A shortcut method for this is available: StitchImages


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
    ImageEnView1.IEBitmap.AssignIEVisionImage( pano );
end;


See Also

stitch