From 199c89545a8b0ea1ac7379213d359de00575d0a4 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Mon, 26 Sep 2011 09:06:48 +0200 Subject: [PATCH] Remove debug messages --- ...onnectedComponentLabelingGenericFilter.txx | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/segmentation/clitkConnectedComponentLabelingGenericFilter.txx b/segmentation/clitkConnectedComponentLabelingGenericFilter.txx index 3c57841..89154a5 100644 --- a/segmentation/clitkConnectedComponentLabelingGenericFilter.txx +++ b/segmentation/clitkConnectedComponentLabelingGenericFilter.txx @@ -32,7 +32,7 @@ template clitk::ConnectedComponentLabelingGenericFilter::ConnectedComponentLabelingGenericFilter(): ImageToImageGenericFilter("ConnectedComponentLabeling") { - // InitializeImageType<2>(); + InitializeImageType<2>(); InitializeImageType<3>(); //InitializeImageType<4>(); } @@ -47,7 +47,7 @@ void clitk::ConnectedComponentLabelingGenericFilter::InitializeIma ADD_IMAGE_TYPE(Dim, uchar); ADD_IMAGE_TYPE(Dim, short); // ADD_IMAGE_TYPE(Dim, int); - // ADD_IMAGE_TYPE(Dim, float); + ADD_IMAGE_TYPE(Dim, float); } //-------------------------------------------------------------------- @@ -72,14 +72,12 @@ template template void clitk::ConnectedComponentLabelingGenericFilter::UpdateWithInputImageType() { - DD("UpdateWithInputImageType"); - // Reading input typename ImageType::Pointer input = this->template GetInput(0); // Output image type typedef itk::Image OutputImageType; - PrintMemory(true, "initial"); + //PrintMemory(true, "initial"); typename OutputImageType::Pointer output; { @@ -95,11 +93,11 @@ void clitk::ConnectedComponentLabelingGenericFilter::UpdateWithInp // connectFilter->SetNumberOfThreads(8); connectFilter->Update(); temp = connectFilter->GetOutput(); - PrintMemory(true, "after udpate"); + // PrintMemory(true, "after udpate"); } - PrintMemory(true, "after CCL block"); - DD(input->GetReferenceCount()); - DD(temp->GetReferenceCount()); + // PrintMemory(true, "after CCL block"); + // DD(input->GetReferenceCount()); + // DD(temp->GetReferenceCount()); // Sort by size and remove too small area. typedef itk::RelabelComponentImageFilter RelabelFilterType; @@ -109,9 +107,9 @@ void clitk::ConnectedComponentLabelingGenericFilter::UpdateWithInp relabelFilter->SetMinimumObjectSize(mArgsInfo.minSize_arg); relabelFilter->Update(); - DD(mArgsInfo.inputBG_arg); - DD(mArgsInfo.full_flag); - DD(mArgsInfo.minSize_arg); + // DD(mArgsInfo.inputBG_arg); + // DD(mArgsInfo.full_flag); + // DD(mArgsInfo.minSize_arg); // Set information const std::vector & a @@ -120,16 +118,16 @@ void clitk::ConnectedComponentLabelingGenericFilter::UpdateWithInp for(unsigned int i=0; iGetSizeOfObjectsInPhysicalUnits(); m_OriginalNumberOfObjects = relabelFilter->GetOriginalNumberOfObjects(); - DD(m_OriginalNumberOfObjects); - DD(m_SizeOfObjectsInPhysicalUnits.size()); + // DD(m_OriginalNumberOfObjects); + // DD(m_SizeOfObjectsInPhysicalUnits.size()); output = relabelFilter->GetOutput(); } - PrintMemory(true, "after block"); + // PrintMemory(true, "after block"); // Write/Save results this->template SetNextOutput(output); - PrintMemory(true, "end filter "); + // PrintMemory(true, "end filter "); } //-------------------------------------------------------------------- -- 2.47.1