1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 15:26:00 +08:00

Warning fixes for FastCV module.

This commit is contained in:
Alexander Smorkalov
2025-03-03 09:22:59 +03:00
parent c44f7ee48f
commit 62e97dad2a
2 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ PERF_TEST_P(HoughLinesPerfTest, run,
{
auto p = GetParam();
std::string fname = std::get<0>(p);
double threshold = std::get<1>(p);
double thrld = std::get<1>(p);
cv::Mat src = imread(cvtest::findDataFile(fname), cv::IMREAD_GRAYSCALE);
// make it aligned by 8
@@ -34,7 +34,7 @@ PERF_TEST_P(HoughLinesPerfTest, run,
{
std::vector<cv::Vec4f> lines;
startTimer();
cv::fastcv::houghLines(src, lines, threshold);
cv::fastcv::houghLines(src, lines, thrld);
stopTimer();
}

View File

@@ -81,12 +81,12 @@ TEST_P(MSERTest, accuracy)
// find pair of contours by similar moments
typedef cv::Matx<double, 10, 1> MomentVec;
auto calcEstimate = [](const std::vector<std::vector<Point>>& contours, Size srcSize) -> std::vector<std::pair<Mat, MomentVec>>
auto calcEstimate = [](const std::vector<std::vector<Point>>& ctrs, Size srcSize) -> std::vector<std::pair<Mat, MomentVec>>
{
std::vector<std::pair<Mat, MomentVec>> res;
for (size_t i = 0; i < contours.size(); i++)
for (size_t i = 0; i < ctrs.size(); i++)
{
const std::vector<Point>& contour = contours[i];
const std::vector<Point>& contour = ctrs[i];
Mat ptsMap(srcSize, CV_8U, Scalar(255));
for(size_t j = 0; j < contour.size(); ++j)
{