ImageEn, unit ievision

TIEVisionStitcher.setWaveCorrection

TIEVisionStitcher.setWaveCorrection


Declaration

procedure setWaveCorrection(value: bool32);


Description

Specify whether wave correction should be performed to prevent the wavy effect of an panaromic image.
The type of correction is specified by setWaveCorrectKind

Default:
ievSTITCH_PANORAMA: True
ievSTITCH_SCAN : False


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

setWaveCorrectKind
createStitcher
stitch