I feel like I’m so close to nailing the whole process having gone through every step individually and tested many permutations.
However I have 2 remaining issues to resolve and wonder if anyone has experience fine tuning the output with this process to get a quality elevation map. First is how to clear up the noise within the output raster, and the other is related to preventing the steep drop off at the shoreline - see all the steps listed and example of the issue on screen caps at the bottom:
-in D:/stereo/16JUN18143623-P1BS-057461431010_01_P001.TIF \
-out D:/14_10_19/stereo_test_2_small_L.tif uint16
Having extracted Left I then used the ‘fit’ feature of ExtractROI process to get the Right image:
-out D:/14_10_19/stereo_test_1_small_R.tif float
otbcli_GridBasedImageResampling -io.in D:/14_10_19/stereo_test_1_small_R2.tif -io.out D:/14_10_19/31_epi_stereo_test_1_small_R.tif
The median filter seems to clear most of the noise, but I’m left with these patches, they seem to be linked to large flat area’s with little variation in shadows, some at the highest position on the terrain some at the lowest:
And this clearly shows the noise but also the shoreline drop off:
I haven’t tried referencing a geoid file at the Stereo Rectification Grid Generator step yet, but I gave it DEM folder option so thought that was enough to clarify sea height?