Commit 93111e34 authored by Guillaume Pasero's avatar Guillaume Pasero

Merge branch 'bugfix-streamingwarpfilter-empty-region' into 'develop'

Do not return empty requested region in case StreamingWarpImageFilter

See merge request !557
parents efa3cda0 40f9d547
Pipeline #2303 passed with stages
in 5 minutes and 50 seconds
......@@ -230,24 +230,9 @@ StreamingWarpImageFilter<TInputImage, TOutputImage, TDisplacementField>
{
inputPtr->SetRequestedRegion(inputRequestedRegion);
}
else
{
inputFinalSize.Fill(0);
inputRequestedRegion.SetSize(inputFinalSize);
inputFinalIndex.Fill(0);
inputRequestedRegion.SetIndex(inputFinalIndex);
// store what we tried to request (prior to trying to crop)
inputPtr->SetRequestedRegion(inputRequestedRegion);
// // build an exception
// itk::InvalidRequestedRegionError e(__FILE__, __LINE__);
// e.SetLocation(ITK_LOCATION);
// e.SetDescription("Requested region is (at least partially) outside the largest possible region.");
// e.SetDataObject(inputPtr);
// throw e;
}
// Here we do not throw an exception, we just do nothing since
// resampling filter can legitimately ask for a region outside of
// input's largest possible region.
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment