Commit 1d3ec991 authored by Daniil Osokin's avatar Daniil Osokin

fixed batchDistance minimum finding #2292

parent 2abb67cc
......@@ -1845,7 +1845,7 @@ void cv::batchDistance( InputArray _src1, InputArray _src2,
int d = tdist.at<int>(i), d0 = dist.at<int>(idx);
if( d < d0 )
{
dist.at<int>(idx) = d0;
dist.at<int>(idx) = d;
nidx.at<int>(idx) = i + update;
}
}
......@@ -1858,7 +1858,7 @@ void cv::batchDistance( InputArray _src1, InputArray _src2,
float d = tdist.at<float>(i), d0 = dist.at<float>(idx);
if( d < d0 )
{
dist.at<float>(idx) = d0;
dist.at<float>(idx) = d;
nidx.at<int>(idx) = i + update;
}
}
......
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