projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d1f94
)
Fixed #6562: Incorrect CV_64F management in ANN
author
Jose Luis Guardiola
<jlguardi@hotmail.com>
Fri, 20 May 2016 11:16:59 +0000
(13:16 +0200)
committer
Jose Luis Guardiola
<jlguardi@hotmail.com>
Fri, 20 May 2016 11:16:59 +0000
(13:16 +0200)
modules/ml/src/ann_mlp.cpp
patch
|
blob
|
history
diff --git
a/modules/ml/src/ann_mlp.cpp
b/modules/ml/src/ann_mlp.cpp
index
b434b60
..
fdc73d9
100644
(file)
--- 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<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];