TIEVisionStitcher.setWaveCorrectKind
Declaration
procedure setWaveCorrectKind(value: TIEVisionWaveCorrectKind);
Description
Specify the kind of wave correction that should be performed to prevent the wavy effect of an panaromic image.
This value is only used if
setWaveCorrectKind has been set to True.
Default: ievHORIZ
| Demos\IEVision\Stitcher\Stitcher.dpr |
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
◼setWaveCorrection
◼createStitcher
◼stitch