From d745faae40e9f4340a1e6a3dec7cc96176f3006d Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Wed, 13 Jun 2012 12:38:31 +0200 Subject: [PATCH] Remove debug comments --- itk/clitkLabelImageOverlapMeasureFilter.txx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/itk/clitkLabelImageOverlapMeasureFilter.txx b/itk/clitkLabelImageOverlapMeasureFilter.txx index f4aabfc..57516bb 100644 --- a/itk/clitkLabelImageOverlapMeasureFilter.txx +++ b/itk/clitkLabelImageOverlapMeasureFilter.txx @@ -51,7 +51,6 @@ void clitk::LabelImageOverlapMeasureFilter:: GenerateInputRequestedRegion() { - // DD("GenerateInputRequestedRegion"); // Call default itk::ImageToImageFilter::GenerateInputRequestedRegion(); // Get input pointers and set requested region to common region @@ -87,6 +86,8 @@ GenerateData() // Resize like the union ImagePointer input1 = clitk::ResizeImageLike(m_Input1, bbo, GetBackgroundValue()); ImagePointer input2 = clitk::ResizeImageLike(m_Input2, bbo, GetBackgroundValue()); + //DD(input1->GetLargestPossibleRegion()); + //DD(input2->GetLargestPossibleRegion()); // Compute overlap image ImagePointer image_union = clitk::Clone(input1); @@ -94,8 +95,8 @@ GenerateData() clitk::Or(image_union, input2, GetBackgroundValue()); clitk::And(image_intersection, input2, GetBackgroundValue()); - // writeImage(image_union, "union.mha"); - // writeImage(image_intersection, "intersection.mha"); + //writeImage(image_union, "union.mha"); + //writeImage(image_intersection, "intersection.mha"); // Compute size typedef itk::LabelStatisticsImageFilter StatFilterType; @@ -120,7 +121,8 @@ GenerateData() statFilter->Update(); int in2 = statFilter->GetCount(GetLabel1()); - std::cout << in1 << " " << in2 << " " << inter << " " << u << " " << 2.0*(double)inter/(double)(in1+in2) << std::endl; + std::cout << in1 << " " << in2 << " " << inter << " " << u << " " + << 2.0*(double)inter/(double)(in1+in2) << std::endl; } //-------------------------------------------------------------------- -- 2.47.1