Skip to content

Commit

Permalink
Warning fixes for FastCV module.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed Mar 3, 2025
1 parent c44f7ee commit 62e97da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/fastcv/perf/perf_hough.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
}

Expand Down
6 changes: 3 additions & 3 deletions modules/fastcv/test/test_mser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 62e97da

Please sign in to comment.