Skip to content

Commit bdc0518

Browse files
authored
Merge pull request #3894 from asmorkalov:as/fast_warn_fix
Warning fixes for FastCV module
2 parents c44f7ee + 62e97da commit bdc0518

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/fastcv/perf/perf_hough.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PERF_TEST_P(HoughLinesPerfTest, run,
2121
{
2222
auto p = GetParam();
2323
std::string fname = std::get<0>(p);
24-
double threshold = std::get<1>(p);
24+
double thrld = std::get<1>(p);
2525

2626
cv::Mat src = imread(cvtest::findDataFile(fname), cv::IMREAD_GRAYSCALE);
2727
// make it aligned by 8
@@ -34,7 +34,7 @@ PERF_TEST_P(HoughLinesPerfTest, run,
3434
{
3535
std::vector<cv::Vec4f> lines;
3636
startTimer();
37-
cv::fastcv::houghLines(src, lines, threshold);
37+
cv::fastcv::houghLines(src, lines, thrld);
3838
stopTimer();
3939
}
4040

modules/fastcv/test/test_mser.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ TEST_P(MSERTest, accuracy)
8181
// find pair of contours by similar moments
8282
typedef cv::Matx<double, 10, 1> MomentVec;
8383

84-
auto calcEstimate = [](const std::vector<std::vector<Point>>& contours, Size srcSize) -> std::vector<std::pair<Mat, MomentVec>>
84+
auto calcEstimate = [](const std::vector<std::vector<Point>>& ctrs, Size srcSize) -> std::vector<std::pair<Mat, MomentVec>>
8585
{
8686
std::vector<std::pair<Mat, MomentVec>> res;
87-
for (size_t i = 0; i < contours.size(); i++)
87+
for (size_t i = 0; i < ctrs.size(); i++)
8888
{
89-
const std::vector<Point>& contour = contours[i];
89+
const std::vector<Point>& contour = ctrs[i];
9090
Mat ptsMap(srcSize, CV_8U, Scalar(255));
9191
for(size_t j = 0; j < contour.size(); ++j)
9292
{

0 commit comments

Comments
 (0)