From 0f9af9001bf4eca27e26f3e721446928d1cf34fb Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Wed, 17 Nov 2010 20:22:39 +0100 Subject: [PATCH] ENH: remove tmp log macro --- .../otbObjectDetectionClassifier.txx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Code/ObjectDetection/otbObjectDetectionClassifier.txx b/Code/ObjectDetection/otbObjectDetectionClassifier.txx index 985236fa07..051a22f137 100644 --- a/Code/ObjectDetection/otbObjectDetectionClassifier.txx +++ b/Code/ObjectDetection/otbObjectDetectionClassifier.txx @@ -239,8 +239,6 @@ PersistentObjectDetectionClassifier<TInputImage,TOutputVectorData,TLabel,TFuncti ::ThreadedGenerateData(const RegionType& outputRegionForThread, int threadId) { -#define LOGG(t) std::cout << #t << " : " << t << std::endl - SVMModelType* model = static_cast<SVMModelType*>(this->itk::ProcessObject::GetInput(1)); typedef typename RegionType::IndexType IndexType; @@ -264,24 +262,14 @@ PersistentObjectDetectionClassifier<TInputImage,TOutputVectorData,TLabel,TFuncti point[0] = current[0]; point[1] = current[1]; - //LOGG(point); DescriptorType descriptor = m_DescriptorsFunction->Evaluate(point); - //LOGG(descriptor); SVMModelMeasurementType modelMeasurement(descriptor.GetSize()); for (unsigned int i = 0; i < descriptor.GetSize(); ++i) { modelMeasurement[i] = (descriptor[i] - m_Shifts[i]) * m_InvertedScales[i]; - -/* - LOGG(i); - LOGG(descriptor[i]); - LOGG(m_Shifts[i]); - LOGG(m_InvertedScales[i]); - LOGG( modelMeasurement[i]); -*/ } LabelType label = model->EvaluateLabel(modelMeasurement); - //LOGG(label); + if (label != m_NoClassLabel) { m_ThreadPointArray[threadId].push_back(std::make_pair(point, label)); -- GitLab