Specifying resampling in sat_sim

7 views
Skip to first unread message

Daniel Evans

unread,
Jun 4, 2025, 4:58:31 AMJun 4
to Ames Stereo Pipeline Support
Hi all,

Is it possible to specify the resampling algorithm used in sat_sim? The documentation notes it uses bicubic interpolation, and I haven't spotted a setting that allows this to be altered. The inverse tool, mapproject, has a --nearest-neighbor option.

My use case is that I'm wanting to transform a pixel mask from "world space" to "sensor space". Bicubic interpolation has problems with under/overshooting with integer data, creating ringing artefacts around the masked areas. I'm therefore interested in trying nearest neighbour sampling instead.

(I think I could also do it by building an RPC model, then passing that into GDAL to do the inverse transform with whatever resampling I request, but I'd prefer to use the true camera model as I've got it available)

Cheers,
Daniel

Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
Jun 4, 2025, 12:02:27 PMJun 4
to Daniel Evans, Ames Stereo Pipeline Support
I looked a the sat_sim code. What you are asking is technically possible but would require extra interface code and other logic. I am rather reluctant to implement this as it appears to be a rather niche application. 

A workaround may be to perhaps resample the orthoimage mask with higher resolution (or the image from where the mask came), blur it to make it smooth, transform it to sensor domain, and threshold it back to 0 - 1 values. 

From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of Daniel Evans <daniel.f...@gmail.com>
Sent: Wednesday, June 4, 2025 1:58 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: [EXTERNAL] [BULK] Specifying resampling in sat_sim
 
CAUTION: This email originated from outside of NASA.  Please take care when clicking links or opening attachments.  Use the "Report Message" button to report suspicious messages to the NASA SOC.



--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/CANnaQabZjxdoXCu3w2nOezRsujau5VB4g8-%3D6xnqgQbQ1t8YPQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages