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:
62353b7
)
Replace an incorrect usage of Ptr with a simple vector.
author
Roman Donchenko
<roman.donchenko@itseez.com>
Tue, 13 Aug 2013 14:52:06 +0000
(18:52 +0400)
committer
Roman Donchenko
<roman.donchenko@itseez.com>
Thu, 5 Sep 2013 15:02:59 +0000
(19:02 +0400)
apps/traincascade/boost.cpp
patch
|
blob
|
history
diff --git
a/apps/traincascade/boost.cpp
b/apps/traincascade/boost.cpp
index
29ac4bc
..
732704a
100644
(file)
--- a/
apps/traincascade/boost.cpp
+++ b/
apps/traincascade/boost.cpp
@@
-957,7
+957,7
@@
void CvCascadeBoostTree::write( FileStorage &fs, const Mat& featureMap )
int subsetN = (maxCatCount + 31)/32;
queue<CvDTreeNode*> internalNodesQueue;
int size = (int)pow( 2.f, (float)ensemble->get_params().max_depth);
-
Ptr<float> leafVals = new float[size]
;
+
std::vector<float> leafVals(size)
;
int leafValIdx = 0;
int internalNodeIdx = 1;
CvDTreeNode* tempNode;