Incorrect epipolar size in StereoRectificationGridGenerator
Description
We noticed an error in the epipolar sizes generated by the StereoRectificationGridGenerator
function when the pixel size in not 1.
This leads to an error when followed by the GridBasedImageResampling
function, using the outputs epi.rectsizex
epi.rectsizey
epi.baseline
for example. These outputs are incoherent with the generated grid.
Epipolar mean_spacing
is not returned by StereoRectificationGridGenerator
, therefore epipolarsize is not enough to parametrize GridBasedImageResampling
Steps to reproduce
If you chain StereoRectificationGridGenerator
with GridBasedImageResampling
using the generated epiplar sizes :
- Using an image with the pixel resolution of 1 :
image size : 500 x 500
the resampled epipolar image 612 x 612 :
- Using an image with the pixel resolution of 2 ( for example generated resampling the previous image):
image size : 225 x 225
the resampled epipolar image 306 x 306 :
- Using an image with the pixel resolution of 0.5 :
image size : 1000 x 1000
the resampled epipolar image 1225 x 1225 :
Configuration information
- Unix
- otb/7.0-python3.7.2
- otb-depends/7.0-python3.7.2