Declaration
TIEVisionStitcher = interface(TIEVisionBase)
Description
An interface that produces a panoramic image by combining multiple photographs with overlapping fields of view.
Note:
◼Stitching is randomized each time
stitch is called, so you may need to call it multiple times to get a desirable result
◼If you encountering failures (particularly
ievSSERR_NEED_MORE_IMGS), ensure that your source images contain enough overlapping content. Try
lowering the threshold to be more accepting of results
◼ievSSERR_CAMERA_PARAMS_ADJUST_FAIL typically occurs when trying to stitch scanned images in panoramic mode, so ensure you set ievSTITCH_SCAN mode when
creating the stitcher. Also try increasing the
registration resolution◼Also see
JoinBitmaps which allows joining of two images with overlap support
◼A shortcut method for this is available:
StitchImages | Demos\IEVision\Stitcher\Stitcher.dpr |
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
◼createStitcher