Merge pull request #2354 from gleb-sternharz:Branch_2.4.8

This commit is contained in:
Roman Donchenko 2014-02-17 15:00:42 +04:00 committed by OpenCV Buildbot
commit a6d64e254f

View File

@ -706,7 +706,7 @@ struct KL_Divergence
Iterator1 last = a + size;
while (a < last) {
if (* a != 0) {
if (* b != 0) {
ResultType ratio = (ResultType)(*a / *b);
if (ratio>0) {
result += *a * log(ratio);