I am trying to reduce the computation time of my stitching algorithm. I got several images that I want to stitch in a certain order , but it seems that the cv::stitcher.stitch() function is trying to stitch each image with any other image.
It seems to me that I can find a solution in the OpenCV Stitcher options. If not, maybe I need to change the function or try something else to shorten the calculation time. But since I'm almost a beginner, I donβt know how to do it. I know that using a GPU may be an option, but I just don't get CUDA on Ubuntu at the moment.
It would be great if you could give me some tips!
OpenCV Stitcher module parameters:
Stitcher Stitcher::createDefault(bool try_use_gpu) { Stitcher stitcher; stitcher.setRegistrationResol(0.6); stitcher.setSeamEstimationResol(0.1); stitcher.setCompositingResol(ORIG_RESOL); stitcher.setPanoConfidenceThresh(1); stitcher.setWaveCorrection(true); stitcher.setWaveCorrectKind(detail::WAVE_CORRECT_HORIZ); stitcher.setFeaturesMatcher(new detail::BestOf2NearestMatcher(try_use_gpu)); stitcher.setBundleAdjuster(new detail::BundleAdjusterRay());
from stitcher.cpp:
https://code.ros.org/trac/opencv/browser/trunk/opencv/modules/stitching/src/stitcher.cpp?rev=7244
source share