Fixed #6562: Incorrect CV_64F management in ANN

This commit is contained in:
Jose Luis Guardiola 2016-05-20 13:16:59 +02:00
parent c3d1f94ee6
commit 2bb520e277

View File

@ -333,7 +333,7 @@ public:
{
for( int i = 0; i < _src.rows; i++ )
{
const float* src = _src.ptr<float>(i);
const double* src = _src.ptr<double>(i);
double* dst = _dst.ptr<double>(i);
for( int j = 0; j < cols; j++ )
dst[j] = src[j]*w[j*2] + w[j*2+1];