Skip to content
Snippets Groups Projects
Commit 1fa3cef1 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: do not use the BufferedRegion since it can be larger than what we want here

parent aff4925a
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ PersistentConnectedComponentSegmentationOBIAToVectorDataFilter<TVImage, TLabelIm
typedef itk::ExtractImageFilter<VectorImageType, VectorImageType> ExtractImageFilterType;
typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
extract->SetInput( this->GetInput() );
extract->SetExtractionRegion( this->GetInput()->GetBufferedRegion() );
extract->SetExtractionRegion( this->GetOutput()->GetRequestedRegion() );
// WARNING: itk::ExtractImageFilter does not copy the MetadataDictionnary
typename MaskImageType::Pointer mask;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment