-
- Downloads
BUG: #2046 Add an epsilon margin to compute the m_ReachableOutputRegion
The application Superimpose crashed with a segmentation fault during resampling. Investigation revealed that the interpolated index was out of image bounds. The application uses the PHR mode and resample the XS image with a otb::GridResampleImageFilter. This filter doesn't check explicitly that input indexes are in the input buffered region. It uses a m_ReachableOutputRegion to crop the output region processed. The problem appears because an output pixel is right on the border of the input image extent, and when someone uses a nearest neighbor interpolator, this one converts the continuous index to an out-of-bound index.
Showing
- Data/Baseline/OTB/Images/apTvPrSuperimposePHR_nn.tif 3 additions, 0 deletionsData/Baseline/OTB/Images/apTvPrSuperimposePHR_nn.tif
- Modules/Applications/AppProjection/app/otbSuperimpose.cxx 1 addition, 0 deletionsModules/Applications/AppProjection/app/otbSuperimpose.cxx
- Modules/Applications/AppProjection/test/CMakeLists.txt 10 additions, 0 deletionsModules/Applications/AppProjection/test/CMakeLists.txt
- Modules/Filtering/ImageManipulation/include/otbGridResampleImageFilter.h 5 additions, 0 deletions...ng/ImageManipulation/include/otbGridResampleImageFilter.h
- Modules/Filtering/ImageManipulation/include/otbGridResampleImageFilter.hxx 6 additions, 4 deletions.../ImageManipulation/include/otbGridResampleImageFilter.hxx
Loading
Please register or sign in to comment