TIEVisionStitcher.setPanoConfidenceThresh
Declaration
procedure setPanoConfidenceThresh(value: double);
Description
Specifies the threshold for the confidence that two images are from same panorama. If the confidence value is below the specified threshold the images are rejected.
Default: 1.0
| 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
◼createStitcher
◼stitch