Fixed allocated vector size in ML ANN algorithm

- updated return value of points_classifier sample
pull/3668/head
Maksim Shabunin 10 years ago
parent 4c52dfc956
commit c85197da55
  1. 2
      modules/ml/src/ann_mlp.cpp
  2. 2
      samples/cpp/points_classifier.cpp

@ -731,7 +731,7 @@ public:
for( i = 0; i < l_count; i++ )
{
int n = layer_sizes[i];
x[i].resize(n);
x[i].resize(n+1);
df[i].resize(n);
dw[i].create(weights[i].size(), CV_64F);
}

@ -398,5 +398,5 @@ int main()
}
}
return 1;
return 0;
}

Loading…
Cancel
Save