Commit 01044c56 authored by Julien Michel's avatar Julien Michel

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

This reverts merge request !557
parent 3e7f5be3
Pipeline #2501 passed with stages
in 68 minutes and 28 seconds
......@@ -230,9 +230,24 @@ StreamingWarpImageFilter<TInputImage, TOutputImage, TDisplacementField>
{
inputPtr->SetRequestedRegion(inputRequestedRegion);
}
// 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.
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;
}
}
......
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