Merge pull request #6395 from Tauranis:master
This commit is contained in:
commit
49b4af1e5c
@ -432,8 +432,15 @@ public:
|
|||||||
double* data = sums.ptr<double>(i);
|
double* data = sums.ptr<double>(i);
|
||||||
for( j = 0; j < cols; j++ )
|
for( j = 0; j < cols; j++ )
|
||||||
{
|
{
|
||||||
double t = scale2*(1. - data[j])/(1. + data[j]);
|
if(!cvIsInf(data[j]))
|
||||||
data[j] = t;
|
{
|
||||||
|
double t = scale2*(1. - data[j])/(1. + data[j]);
|
||||||
|
data[j] = t;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
data[j] = -scale2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user