Dear ASP developers,
I am investigating the effects of different configurations of parallel_stereo on DEM quality, focusing particularly on the correlation kernel (ck) and subpixel-refinement kernel (spk). I have been processing stereo DEMs of Ganymede using JunoCam data. Following the example provided in the ASP documentation, I have also been testing MGM with subpixel-mode 9 (SGM Poly4).
I noticed an interesting difference between subpixel modes 2 and 9 that I would like to understand better.
With subpixel-mode 9, fixing ck and varying spk over a range of values (3–25 px) produced identical DEMs in my tests. However, fixing the other parameters and increasing ck from 3 to 9 px produced a visibly smoother DEM.
For example, the attached figure compares two MGM DEMs generated from the same JunoCam stereopair and with the same subpixel mode (9) but different
ck (3 and 9 px, respectively). The DEMs are gridded at 3x the image GSD.
The difference is visible both in the shaded relief (top panels) and in the profile across a small impact crater (red transect). The ck=9 solution appears smoother and the crater morphology is flatter.
This led me to wonder about how the subpixel interpolation is implemented in modes 7–12.
The ASP documentation states: "The subpixel-mode If not set, or set to values 7-12, SGM will perform subpixel interpolation during the stereo correlation step and will not do additional work in the stereo refinement step".
My questions are therefore:
1) Is
--subpixel-kernel ignored when using subpixel modes 7–12?
This would be consistent with my observation that changing
--subpixel-kernel has no effect when using mode 9.
2) What determines the effective subpixel-interpolation kernel width used by SGM Poly4 (subpixel mode 9)? Is it a fixed internal value, or does it depend on the correlation kernel size? For example, does increasing
ck also increase the
spk used by the SGM subpixel interpolation?
3) More generally, would it be possible to have some additional details about how the subpixel interpolation in modes 7–12 is implemented, particularly for SGM Poly4 (mode 9)? Understanding this could be useful for my research.
As a control experiment, I also tested subpixel-mode 2, where --subpixel-kernel is explicitly configurable, using both ASP BM and ASP MGM. In all cases, changing ck while keeping spk fixed produced much smaller (if any) differences, whereas changing spk at fixed ck produced a clear change in smoothing.
I would be very grateful for any clarification on these points.
Best Regards,
Gianluca