Hello! Im trying to stitch two images with Stitcher
It is not stitch cause it has matches on top and bottom of screenshots, is there a way to filter unnecessary features?
My code:
Mat pano;
cv::Ptr<Stitcher> stitcher = Stitcher::create(mode);
stitcher->setFeaturesFinder(makePtr<detail::SurfFeaturesFinder>(100,1,1));
stitcher->setSeamFinder(makePtr<detail::VoronoiSeamFinder>());
stitcher->setRegistrationResol(0.3);
stitcher->setSeamEstimationResol(0.3);
stitcher->setCompositingResol(0.3);
stitcher->setPanoConfidenceThresh(0.3);
stitcher->setWaveCorrection(false);
Stitcher::Status status = stitcher->stitch(imgs, pano);
if (status != Stitcher::OK) {
cout << "Can't stitch images, error code = " << int(status) << endl;
return nil;
}
return MatToUIImage(pano);