Skip to content

Warning fixes for FastCV module #3894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading