]> Creatis software - clitk.git/blobdiff - itk/clitkAutoCropFilter.txx
add option to display memory usage if statgrab is installed
[clitk.git] / itk / clitkAutoCropFilter.txx
index 145cc36f8ae24434cd47d72d1414e398a1c3fd64..8f45f575aef816f6b39be387a7af94f66d30c969 100644 (file)
@@ -133,17 +133,16 @@ namespace clitk {
   
     // Extract the region with RegionOfInterestImageFilter or ExtractImageFilter ? 
     // The second is when reducing the nb of dimension (index always zero)
-    // The first keep index
+    // The first keep index. 
+    // OLD : typedef itk::ExtractImageFilter<ImageType, ImageType> CropFilterType;
+    // OLD : cropFilter->SetExtractionRegion(m_Region);
 
     typedef itk::RegionOfInterestImageFilter<ImageType, ImageType> CropFilterType;
-    //typedef itk::ExtractImageFilter<ImageType, ImageType> CropFilterType;
     m_labeImage->SetRequestedRegion(m_labeImage->GetLargestPossibleRegion());
     typename CropFilterType::Pointer cropFilter = CropFilterType::New();
     cropFilter->SetInput(m_labeImage);
     cropFilter->SetReleaseDataFlag(this->GetReleaseDataFlag());
-
     cropFilter->SetRegionOfInterest(m_Region);
-    //cropFilter->SetExtractionRegion(m_Region);
 
     // Go ! 
     cropFilter->Update();