From: Jose Luis Guardiola Date: Fri, 20 May 2016 11:16:59 +0000 (+0200) Subject: Fixed #6562: Incorrect CV_64F management in ANN X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1869^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bb520e277f1d576169a7661d5c3fa9aa21aa5b5;p=platform%2Fupstream%2Fopencv.git Fixed #6562: Incorrect CV_64F management in ANN --- diff --git a/modules/ml/src/ann_mlp.cpp b/modules/ml/src/ann_mlp.cpp index b434b60..fdc73d9 100644 --- a/modules/ml/src/ann_mlp.cpp +++ b/modules/ml/src/ann_mlp.cpp @@ -333,7 +333,7 @@ public: { for( int i = 0; i < _src.rows; i++ ) { - const float* src = _src.ptr(i); + const double* src = _src.ptr(i); double* dst = _dst.ptr(i); for( int j = 0; j < cols; j++ ) dst[j] = src[j]*w[j*2] + w[j*2+1];