From bcdade9daa52b1f9058f8ea19ed4e83300c75198 Mon Sep 17 00:00:00 2001 From: "y.qiu" Date: Thu, 13 Mar 2025 09:21:37 +0800 Subject: [PATCH] Revert "aligned scene" This reverts commit e5cf60e2547db7e7b27d03080b16bf1db79807bf. --- grayMatch.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/grayMatch.cpp b/grayMatch.cpp index 2f64d06..43ec4d2 100644 --- a/grayMatch.cpp +++ b/grayMatch.cpp @@ -631,27 +631,6 @@ std::vector matchDownLevel(const std::vector &pyramids, return levelMatched; } -void buildPyramid(const cv::Mat &src, std::vector &dst, int level) { - dst.resize(level + 1); - auto alignedWidth = cv::alignSize(src.cols, simdSize(cv::v_uint8)); - if (alignedWidth != src.cols) { - cv::Mat img(src.rows, alignedWidth, CV_8UC1); - dst[ 0 ] = img(cv::Rect(0, 0, src.cols, src.rows)); - } - dst[ 0 ] = src; - - for (int i = 1; i <= level; i++) { - auto width = dst[ i - 1 ].cols / 2; - alignedWidth = cv::alignSize(width, simdSize(cv::v_uint8)); - auto height = dst[ i - 1 ].rows / 2; - - cv::Mat img(height, alignedWidth, CV_8UC1); - dst[ i ] = img(cv::Rect(0, 0, width, height)); - - cv::pyrDown(dst[ i - 1 ], dst[ i ], cv::Size(width, height)); - } -} - std::vector matchModel(const cv::Mat &dst, const Model *model, int level, double startAngle, double spanAngle, const double maxOverlap, const double minScore, const int maxCount, const int subpixel) {