1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Added handling of ROI in stitching features matchers

This commit is contained in:
Alexey Spizhevoy
2011-09-26 09:59:13 +00:00
parent b053a3b486
commit a7d053f10d
4 changed files with 51 additions and 1 deletions
@@ -67,6 +67,7 @@ class CV_EXPORTS FeaturesFinder
public:
virtual ~FeaturesFinder() {}
void operator ()(const Mat &image, ImageFeatures &features);
void operator ()(const Mat &image, ImageFeatures &features, const std::vector<cv::Rect> &rois);
virtual void collectGarbage() {}
protected:
@@ -66,6 +66,7 @@ public:
// Stitches the biggest found pano. Returns status code.
Status stitch(InputArray imgs, OutputArray pano);
Status stitch(InputArray imgs, const std::vector<std::vector<cv::Rect> > &rois, OutputArray pano);
double registrationResol() const { return registr_resol_; }
void setRegistrationResol(double resol_mpx) { registr_resol_ = resol_mpx; }
@@ -147,6 +148,7 @@ private:
Ptr<detail::Blender> blender_;
std::vector<cv::Mat> imgs_;
std::vector<std::vector<cv::Rect> > rois_;
std::vector<cv::Size> full_img_sizes_;
std::vector<detail::ImageFeatures> features_;
std::vector<detail::MatchesInfo> pairwise_matches_;