X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAutoCropFilter.txx;h=8f45f575aef816f6b39be387a7af94f66d30c969;hb=62c08c838c8d824b37b908bbed67b996aaaa31ac;hp=743fe13f5a0bddd5a71fb57b5e8eab02d8398af6;hpb=6f94b0c1ef2a28dd349ea0ee03c5e294d9197757;p=clitk.git diff --git a/itk/clitkAutoCropFilter.txx b/itk/clitkAutoCropFilter.txx index 743fe13..8f45f57 100644 --- a/itk/clitkAutoCropFilter.txx +++ b/itk/clitkAutoCropFilter.txx @@ -132,18 +132,17 @@ namespace clitk { ImageConstPointer input = dynamic_cast(itk::ProcessObject::GetInput(0)); // Extract the region with RegionOfInterestImageFilter or ExtractImageFilter ? - // The first is when reducing the nb of dimension (index always zero) - // The second keep index + // The second is when reducing the nb of dimension (index always zero) + // 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();