From: dsarrut Date: Tue, 5 Oct 2010 09:30:30 +0000 (+0000) Subject: remove debug DD X-Git-Tag: v1.2.0~361 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=14f79c6048942f31c8ec28831e8422f99debf54e;p=clitk.git remove debug DD --- diff --git a/itk/clitkExtractSliceFilter.txx b/itk/clitkExtractSliceFilter.txx index 594fa10..e9c4aeb 100644 --- a/itk/clitkExtractSliceFilter.txx +++ b/itk/clitkExtractSliceFilter.txx @@ -53,11 +53,9 @@ void clitk::ExtractSliceFilter:: GetOutputSlices(std::vector & o) { - DD("GetOutputSlices"); o.clear(); for(unsigned int i=0; iGetNumberOfOutputs(); i++) { o.push_back(this->GetOutput(i)); - // writeImage(this->GetOutput(i), "extractB"+clitk::toString(i)+".mhd"); } } //-------------------------------------------------------------------- @@ -69,7 +67,6 @@ void clitk::ExtractSliceFilter:: GenerateOutputInformation() { - DD("GenerateOutputInformation"); ImagePointer input = dynamic_cast(itk::ProcessObject::GetInput(0)); // Create region to extract @@ -77,7 +74,6 @@ GenerateOutputInformation() m_size = m_region.GetSize(); m_index = m_region.GetIndex(); m_NumberOfSlices = m_region.GetSize()[GetDirection()]; - DD(m_NumberOfSlices); } //-------------------------------------------------------------------- @@ -87,7 +83,6 @@ template void clitk::ExtractSliceFilter:: GenerateInputRequestedRegion() { - DD("GenerateInputRequestedRegion"); // Call default Superclass::GenerateInputRequestedRegion(); // Get input pointers and set requested region to common region @@ -101,8 +96,6 @@ template void clitk::ExtractSliceFilter:: GenerateData() { - DD("GenerateData"); - //-------------------------------------------------------------------- // Get input pointer input = dynamic_cast(itk::ProcessObject::GetInput(0)); @@ -112,24 +105,7 @@ GenerateData() { m_size[GetDirection()] = 0; m_region.SetSize(m_size); int start = m_index[GetDirection()]; - DD(start); this->SetNumberOfOutputs(m_NumberOfSlices); - /* - typename SliceType::RegionType regionSlice; - typename SliceType::SizeType sizeSlice; - typename SliceType::IndexType indexSlice; - int j=0; - for(int i=0; iSetInput(input); - // DD(i); m_index[GetDirection()] = start + i; m_region.SetIndex(m_index); - // DD(m_region); extract->SetExtractionRegion(m_region); extract->Update(); - // DD("set output"); SetNthOutput(i, extract->GetOutput()); - // writeImage(extract->GetOutput(), "extractA"+clitk::toString(i)+".mhd"); } - return; } //--------------------------------------------------------------------