ImageEn, unit ievision

TIEVisionStitcher.setInterpolationFlags

TIEVisionStitcher.setInterpolationFlags


Declaration

procedure setInterpolationFlags(value: TIEVisionInterpolation);


Description

Specify the quality filter using when scaling the image during the stitching process.

Default: ievLINEAR


Demo

Demo  Demos\IEVision\Stitcher\Stitcher.dpr


Example

const
  ORIG_RESOL = -1;
var
  images: TIEVisionVectorImageRef;
  stitcher: TIEVisionStitcher;
  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'));

  stitcher := IEVisionLib.createStitcher( False, ievSTITCH_PANORAMA );

  // Set parameters
  stitcher.setRegistrationResol( 0.6 );
  stitcher.setSeamEstimationResol( 0.1 );
  stitcher.setCompositingResol( ORIG_RESOL );
  stitcher.setPanoConfidenceThresh( 0.7 );
  stitcher.setInterpolationFlags( ievLINEAR );
  stitcher.setWaveCorrection( True );
  stitcher.setWaveCorrectKind( ievAUTO );

  pano := stitcher.stitch(images, status);

  if status = ievSSOK then
    ImageEnView1.IEBitmap.AssignIEVisionImage(pano);
end;


See Also

createStitcher
stitch