diff --git a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h index ce2d62245..c27b64834 100644 --- a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h +++ b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h @@ -298,6 +298,11 @@ public: trees_ = get_param(params,"trees",4); root = new NodePtr[trees_]; indices = new int*[trees_]; + + for (int i=0; i