Commit da58425f authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #2629 from maksqwe:unused_fix

parents e11d998c 3e5a69d8
...@@ -1198,7 +1198,6 @@ int LineSegmentDetectorImpl::compareSegments(const Size& size, InputArray lines1 ...@@ -1198,7 +1198,6 @@ int LineSegmentDetectorImpl::compareSegments(const Size& size, InputArray lines1
_lines1 = lines1.getMat(); _lines1 = lines1.getMat();
_lines2 = lines2.getMat(); _lines2 = lines2.getMat();
// Draw segments // Draw segments
std::vector<Mat> _lines;
for(int i = 0; i < _lines1.size().width; ++i) for(int i = 0; i < _lines1.size().width; ++i)
{ {
Point b(_lines1.at<Vec4i>(i)[0], _lines1.at<Vec4i>(i)[1]); Point b(_lines1.at<Vec4i>(i)[0], _lines1.at<Vec4i>(i)[1]);
......
...@@ -2934,7 +2934,6 @@ void erGrouping(InputArrayOfArrays _src, vector<vector<ERStat> > &regions, const ...@@ -2934,7 +2934,6 @@ void erGrouping(InputArrayOfArrays _src, vector<vector<ERStat> > &regions, const
float a1=((int)meaningful_clusters.at(i).size()*sumxy-sumx*sumy) / float a1=((int)meaningful_clusters.at(i).size()*sumxy-sumx*sumy) /
((int)meaningful_clusters.at(i).size()*sumx2-sumx*sumx); ((int)meaningful_clusters.at(i).size()*sumx2-sumx*sumx);
vector<float> data;
if (a1 != a1) if (a1 != a1)
data_arrays.at(i).push_back(1.f); data_arrays.at(i).push_back(1.f);
else else
......
...@@ -83,9 +83,7 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow, ...@@ -83,9 +83,7 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow,
const PyrLKOpticalFlowParams params = GetParam(); const PyrLKOpticalFlowParams params = GetParam();
const int pointsCount = get<0>(params); const int pointsCount = get<0>(params);
vector<Point2f> pts, nextPts; vector<Point2f> pts;
vector<unsigned char> status;
vector<float> err;
goodFeaturesToTrack(frame0, pts, pointsCount, 0.01, 0.0); goodFeaturesToTrack(frame0, pts, pointsCount, 0.01, 0.0);
Mat ptsMat(1, static_cast<int>(pts.size()), CV_32FC2, (void *)&pts[0]); Mat ptsMat(1, static_cast<int>(pts.size()), CV_32FC2, (void *)&pts[0]);
...@@ -99,4 +97,4 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow, ...@@ -99,4 +97,4 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow,
} } // namespace cvtest::ocl } } // namespace cvtest::ocl
#endif // HAVE_OPENCL #endif // HAVE_OPENCL
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment