IPB

Welcome Guest ( Log In | Register )

Mars Raw Image Processing
Kevin Gill
post May 20 2022, 04:15 PM
Post #1


Member
***

Group: Members
Posts: 146
Joined: 22-July 14
Member No.: 7220



I wanted to let you know of a project that I've been poking at for the past year. In an effort to streamline my own processing of raw MSL/Perseverance/InSight imaging, I created Mars Raw Utils (boring name, I know...). It has utilities for batch downloading images from the raw image websites and ILT/RAD/etc calibration. Calibration includes decompanding/LUT, debayer, flat fielding, blemish repair/inpainting, color correction, and hot pixel correction. I also made utilities for creating dust devil gifs, Photoshop/GIMP-like levels adjustments, cropping, focus merging, inpainting, and determining current mission date/time/sol. Calibration files are included in the installation and easily modified and/or replaced.

This is all done with the acknowledgment that the raw images are compressed and otherwise modified from the full mission data products so calibration is only a 'best effort' process and full PDS-quality output is not expected. The output is formatted with the expectation that you'll want to do additional processing in Gimp, Photoshop, etc.

It's all command-line driven, multi-platform, open source, and written in Rust.

Here's the project homepage on GitHub: https://github.com/kmgill/mars-raw-utils

And an overview/quickstart: https://github.com/kmgill/mars-raw-utils/wiki

I'm implementing new calibration steps as I get to them, though my latest efforts have been on implementing full support for CAHV/OR/E camera models and compositing.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Kevin Gill
post May 24 2022, 12:46 AM
Post #2


Member
***

Group: Members
Posts: 146
Joined: 22-July 14
Member No.: 7220



Since I posted that, in the master branch I've rolled all the commands into subcommands of a single binary 'mru' (in a manner similar to the 'git' command). This'll let me consolidate a bunch of stuff to remove duplicate code and makes the whole thing a little more consistent. I've updated the MSL, M20, InSight, and Dust Devil example scripts to reflect this change. I've also put in an anaglyph function for red/blue stereo pairs. The composite command autostitches mosaics. Both of these commands require a metadata file containing the CAHVOR camera components (automatically generated when downloading via 'mru msl-fetch ...' and 'mru m20-fetch ...'. Once I've done enough testing, I'll cut a release and upload new installers for Linux (deb, rpm), MacOS (Homebrew), and Windows.

-- Kevin


Test Anaglyph - MSL Sol 3476 Navcam
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 21st June 2024 - 02:01 PM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member.