projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2abb67c
)
fixed batchDistance minimum finding #2292
author
Daniil Osokin
<daniil.osokin@itseez.com>
Fri, 12 Oct 2012 08:31:05 +0000
(12:31 +0400)
committer
Daniil Osokin
<daniil.osokin@itseez.com>
Fri, 12 Oct 2012 09:25:55 +0000
(13:25 +0400)
modules/core/src/stat.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/stat.cpp
b/modules/core/src/stat.cpp
index
09f1d48
..
ac6c043
100644
(file)
--- a/
modules/core/src/stat.cpp
+++ b/
modules/core/src/stat.cpp
@@
-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) = d
0
;
+ 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) = d
0
;
+ dist.at<float>(idx) = d;
nidx.at<int>(idx) = i + update;
}
}