Skip to content
Snippets Groups Projects
Commit 569686e4 authored by Julien Michel's avatar Julien Michel
Browse files

Merge branch 'revert-93111e34' into 'develop'

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

See merge request orfeotoolbox/otb!583
parents 6e96b931 01044c56
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
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