Warning fixes for FastCV module.

pull/3894/head
Alexander Smorkalov 3 months ago
parent c44f7ee48f
commit 62e97dad2a
  1. 4
      modules/fastcv/perf/perf_hough.cpp
  2. 6
      modules/fastcv/test/test_mser.cpp

@ -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();
}

@ -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)
{

Loading…
Cancel
Save