X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAutoCropFilter.txx;h=8f45f575aef816f6b39be387a7af94f66d30c969;hb=62c08c838c8d824b37b908bbed67b996aaaa31ac;hp=145cc36f8ae24434cd47d72d1414e398a1c3fd64;hpb=523a9f961d83eaed5ec3365a07b9f6be35b538f0;p=clitk.git diff --git a/itk/clitkAutoCropFilter.txx b/itk/clitkAutoCropFilter.txx index 145cc36..8f45f57 100644 --- a/itk/clitkAutoCropFilter.txx +++ b/itk/clitkAutoCropFilter.txx @@ -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 CropFilterType; + // OLD : cropFilter->SetExtractionRegion(m_Region); typedef itk::RegionOfInterestImageFilter CropFilterType; - //typedef itk::ExtractImageFilter 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();