From bd500ff0f7b00f13f7a32ccba3a41773c5bdcf87 Mon Sep 17 00:00:00 2001 From: Marina Kolpakova Date: Tue, 26 Jun 2012 12:44:27 +0000 Subject: [PATCH] fixed LBP loader test --- modules/gpu/src/cascadeclassifier.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gpu/src/cascadeclassifier.cpp b/modules/gpu/src/cascadeclassifier.cpp index e959342a6d..fb5b233bec 100644 --- a/modules/gpu/src/cascadeclassifier.cpp +++ b/modules/gpu/src/cascadeclassifier.cpp @@ -234,7 +234,7 @@ bool CascadeClassifier_GPU_LBP::read(const FileNode &root) FileNodeIterator f_it = fn.begin(), f_end = fn.end(); for (; f_it != f_end; ++f_it) { - FileNode rect = fn[GPU_CC_RECT]; + FileNode rect = (*it)[GPU_CC_RECT]; FileNodeIterator r_it = rect.begin(); features.push_back(saturate_cast((int)*(r_it++))); features.push_back(saturate_cast((int)*(r_it++))); @@ -280,6 +280,8 @@ bool CascadeClassifier_GPU_LBP::read(const FileNode &root) #undef GPU_CC_WEAK_CLASSIFIERS #undef GPU_CC_INTERNAL_NODES #undef GPU_CC_LEAF_VALUES +#undef GPU_CC_FEATURES +#undef GPU_CC_RECT Size cv::gpu::CascadeClassifier_GPU_LBP::getClassifierSize() const {