mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Replace an incorrect usage of Ptr with a simple vector.
This commit is contained in:
parent
62353b7980
commit
2a2c21bb63
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user