IPB

Welcome Guest ( Log In | Register )

MSL Images & Cameras, technical discussions of images, image processing and cameras
CosmicRocker
post Aug 16 2012, 11:05 PM
Post #101


Senior Member
****

Group: Members
Posts: 2228
Joined: 1-December 04
From: Marble Falls, Texas, USA
Member No.: 116



I'm still trying to figure out a number of things about the new images we are trying to work with. Assuming others are likewise trying to learn, I thought I would open this thread to create a place for such discussions.

I'd like to start out with a comment about raw image contrast. There have been several postings in the main threads about whether or not the MSL raw images have been stretched like those from the MER missions. I am certainly no expert on this, but it looks to me as if the MSL images have not been stretched at all. I haven't tried to analyze all of the image types, but the hazcams and navcams have pixel brightness histograms that are very different from their MER counterparts.

This attached image compares MER and MSL navcams along with their luminosity histograms.
Attached Image


The MSL images clearly are not using the entire, available range of brightness values, whereas the MER raws do. For this reason, the MSL raw images can usually be nicely enhanced by simply stretching the distribution of brightness across the full 256 value range.


--------------------
...Tom

I'm not a Space Fan, I'm a Space Exploration Enthusiast.
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
EdTruthan
post Oct 15 2012, 07:26 PM
Post #102


Member
***

Group: Members
Posts: 222
Joined: 7-August 12
From: Garberville, CA
Member No.: 6500



Sorry for the long post but if this works as a fairly accurate white balancing trick I wanted to get everybody's take on it and share the technique...

The white balance issue (thanks for bringing it to the forefront mcaplinger) certainly is a pesky one for imagery geeks like myself. Where there is a calibration target in the image its a pretty simple task to equalize RGB values based on a gray target. Mcapliger's general adjustment values are certainly a move in the right direction. But with so many differing landscapes and lighting values based on time of day, sun angle, and atmosphic dust content, and absolutely nothing to accurately base mean gray values on, I've been struggling with how to find a method of determining just how one would go about getting an accurate white balance with any given image. This morning I stumbled across a technique that after a some extensive tests seems to show promise...

I was remembering how if one takes a color image (any image that is, Earth based or not), and copies it into another layer, inverts the color, and reduces the opacity of that inverted upper layer to 50%, the transparent inverted colors cancel out the colors of the original image below, leaving a blank neutral grayscale image. Using this concept and and a few tools in Photoshop (requires any CS version) I created custom photo filters (that vary slightly on a per image basis) that appear to white balance the Martian atmospheric tinge on calibration targets near perfectly, and so by extension one could argue the landscape as well.

Here's the technique I used for the following examples (I suppose one could loosely refer to it as "IBF" or Invert > Blur > Filter):

1. Open an MSL image in Photoshop.
2. Duplicate the "Background" layer. You now have a "Background copy" layer above the original.
3. With the "Background copy" layer selected, choose "Image > Adjustments > Invert", then "Filter > Blur > Average". You should now have a bluish single colored blank layer.
4. Use the eye dropper tool to select this color as your foreground color on the tools palette. Now turn this layer off so you can see the original image.
5. Now select your MSL image layer again ("Background") and choose "Image > Adjustments > Photo Filter..."
6. In the dialog that opens choose the "Color" radio button and click on the default color swatch and assign it with the bluish foreground color you saved on the tools palette.
7. Move the slider to 95%. (determined because at 95% the calibration target gray RGB values are closest).

Now if the image you're using is a landscape shot you're going to notice the color has washed out quite a bit. This is the filter at work. Just do the following.

8. Choose "Image > Adjustments > Hue/Saturation..." and increase the Saturation Slider to about 55-60.

This last adjustment is about where most of the tests I ran on landscapes seemed to restore the color to about the intensity of the original, though admittedly it's arbitrary. In fact, the calibration target samples below only seemed to require a 25-30 increase in saturation, as any higher seemed to over saturate them. I take this to perhaps be and indication that the farther away the target, the more saturation "recovery" must be applied (due to the extra desaturation effect of the atmosphere?).

Using this technique on an image by image basis (i.e. the precise color of the filter varying as per the inverted, blurred averaged color of the original) I was able to achieve the following results. As the technique seemed to almost perfectly balance the white, gray, and black levels of the calibration targets, could we then assume that the landscape color values must then be similarly accurate? Hmmmm.










--------------------
"We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time." -T.S. Eliot
Go to the top of the page
 
+Quote Post

Posts in this topic
- CosmicRocker   MSL Images & Cameras   Aug 16 2012, 11:05 PM
- - djellison   Blue filters on a bayer filter can often be nIR tr...   Sep 16 2012, 07:04 AM
- - Ant103   Oh nooo, what have they done ? Auto-white balanc...   Sep 18 2012, 01:57 PM
|- - MahFL   I don't know if it's me or what but the MS...   Sep 18 2012, 02:02 PM
- - dvandorn   As one of the first people to mention that the nav...   Sep 18 2012, 02:30 PM
|- - fredk   QUOTE (dvandorn @ Sep 18 2012, 02:30 PM) ...   Sep 18 2012, 03:14 PM
- - mhoward   Well, the Navcam image quality on the web improved...   Sep 18 2012, 02:49 PM
- - Ant103   Well yes, dark sand and over exposed rocks ? http:...   Sep 18 2012, 03:09 PM
|- - ronald   QUOTE (Ant103 @ Sep 18 2012, 05:09 PM) I ...   Sep 20 2012, 07:05 AM
- - Ant103   No Fredk. What has been lost, has been lost. If yo...   Sep 18 2012, 03:41 PM
|- - Doc   I think you're right Ant. I study with B/W son...   Sep 18 2012, 05:05 PM
|- - djellison   QUOTE (Ant103 @ Sep 18 2012, 08:41 AM) bu...   Sep 18 2012, 07:31 PM
- - fredk   You can reproduce the overall look of the old imag...   Sep 18 2012, 06:14 PM
- - Ant103   So, I could think that "people" have som...   Sep 18 2012, 08:23 PM
- - EdTruthan   Hopefully what we're seeing has been temporari...   Sep 18 2012, 10:43 PM
|- - fredk   FWIW, my guess is that jpl received masses of emai...   Sep 18 2012, 11:33 PM
- - markril   I'll just comment that I like the change (impr...   Sep 19 2012, 01:19 AM
- - Ant103   About 3 months if I'm correct ? Scuse me but, ...   Sep 19 2012, 01:48 AM
|- - xflare   QUOTE (Ant103 @ Sep 19 2012, 02:48 AM) Th...   Sep 20 2012, 08:54 AM
- - ronald   Couldn't find an answer so far - can please so...   Sep 20 2012, 07:48 PM
|- - mcaplinger   QUOTE (ronald @ Sep 20 2012, 12:48 PM) ca...   Sep 20 2012, 08:57 PM
|- - ronald   Thank you for the link. Two more: The combined Ca...   Sep 21 2012, 06:09 AM
|- - vikingmars   QUOTE (ronald @ Sep 21 2012, 08:09 AM) Th...   Sep 23 2012, 11:50 AM
|- - djellison   QUOTE (vikingmars @ Sep 23 2012, 03:50 AM...   Sep 23 2012, 09:08 PM
|- - markril   QUOTE (djellison @ Sep 23 2012, 02:08 PM)...   Sep 23 2012, 09:31 PM
|- - vikingmars   QUOTE (markril @ Sep 23 2012, 11:31 PM) I...   Sep 24 2012, 10:19 AM
|- - Paul Fjeld   QUOTE (vikingmars @ Sep 24 2012, 05:19 AM...   Sep 24 2012, 03:09 PM
- - udolein   How can I demosaic the bayer filter treated Curios...   Sep 22 2012, 01:17 PM
|- - Nix   You can download GIMP (GIMP.org) and the plugin G...   Sep 22 2012, 01:47 PM
|- - udolein   Thanks-a-lot. Works ! Regards Udo   Sep 22 2012, 03:43 PM
- - jmknapp   How would the night sky look at Gale Crater? Would...   Sep 22 2012, 08:10 PM
|- - Joffan   QUOTE (jmknapp @ Sep 22 2012, 02:10 PM) I...   Sep 22 2012, 08:42 PM
- - ngunn   I'll go with 'magnificent'. Dust isn...   Sep 22 2012, 08:20 PM
- - fredk   There was lots of night imaging from Spirit of cou...   Sep 22 2012, 09:40 PM
|- - markril   QUOTE (fredk @ Sep 22 2012, 01:40 PM) As ...   Sep 23 2012, 02:02 PM
- - fredk   The problem is precision. I'd be surprized if...   Sep 23 2012, 04:51 PM
|- - jmknapp   QUOTE (fredk @ Sep 23 2012, 12:51 PM) I...   Sep 23 2012, 05:58 PM
- - djellison   Let's see if Mars behaves the same as that win...   Sep 23 2012, 10:44 PM
- - fredk   The lighting's very different between those so...   Sep 24 2012, 02:35 PM
|- - vikingmars   QUOTE (fredk @ Sep 24 2012, 04:35 PM) Th...   Sep 24 2012, 03:46 PM
- - djellison   Note - you're not using calibrated data - you...   Sep 24 2012, 04:52 PM
- - jmknapp   The date on that magnet study was June 2011, which...   Sep 24 2012, 05:31 PM
|- - mcaplinger   QUOTE (jmknapp @ Sep 24 2012, 10:31 AM) w...   Sep 24 2012, 05:59 PM
- - djellison   Note that the thesis concludes that " in less...   Sep 24 2012, 06:11 PM
|- - vikingmars   QUOTE (djellison @ Sep 24 2012, 08:11 PM)...   Sep 24 2012, 10:32 PM
|- - ronatu   QUOTE (djellison @ Sep 24 2012, 02:11 PM)...   Sep 24 2012, 11:53 PM
- - iMPREPREX   There appears to be dust on the right MastCam acco...   Sep 26 2012, 06:50 AM
- - Explorer1   Do you mean the little fleck on the middle top of ...   Sep 26 2012, 07:31 AM
|- - xflare   QUOTE (Explorer1 @ Sep 26 2012, 08:31 AM)...   Sep 26 2012, 08:49 AM
||- - mhoward   I haven't noticed any decrease in quality of t...   Sep 26 2012, 12:03 PM
||- - vikingmars   100% agree with you ! They are great workable ...   Sep 26 2012, 12:25 PM
|- - mcaplinger   QUOTE (Explorer1 @ Sep 26 2012, 12:31 AM)...   Sep 26 2012, 01:20 PM
|- - iMPREPREX   QUOTE (mcaplinger @ Sep 26 2012, 08:20 AM...   Sep 26 2012, 08:09 PM
- - Deimos   Remember that the Mastcam images are downlinked to...   Sep 26 2012, 01:05 PM
- - pospa   Please don't lapidate me and excuse for mayb...   Sep 26 2012, 02:44 PM
- - fredk   We talked about nighttime observing with MSL just ...   Sep 26 2012, 02:54 PM
- - pospa   Thanks, fredk. I'm at UMSF almost daily but th...   Sep 26 2012, 04:07 PM
- - Greenish   I don't post much but am a daily reader of thi...   Oct 10 2012, 05:12 PM
|- - mcaplinger   1 doesn't apply, there have been lots of narro...   Oct 10 2012, 05:55 PM
- - ronald   I did made some tests but the false colored (using...   Oct 10 2012, 07:05 PM
- - Greenish   Thanks for the replies. I had overlooked the gray...   Oct 10 2012, 10:17 PM
|- - mcaplinger   QUOTE (Greenish @ Oct 10 2012, 03:17 PM) ...   Oct 11 2012, 03:46 AM
|- - Greenish   Thanks again, mcaplinger, for the clarification an...   Oct 11 2012, 02:42 PM
- - mcaplinger   I've seen quite a bit of difference in how peo...   Oct 14 2012, 03:25 PM
|- - ronald   QUOTE (mcaplinger @ Oct 14 2012, 05:25 PM...   Oct 14 2012, 06:09 PM
|- - ugordan   QUOTE (ronald @ Oct 14 2012, 08:09 PM) So...   Oct 14 2012, 06:53 PM
||- - Eyesonmars   QUOTE (ugordan @ Oct 14 2012, 07:53 PM) N...   Oct 14 2012, 09:23 PM
||- - AndyG   QUOTE (Eyesonmars @ Oct 14 2012, 10:23 PM...   Oct 14 2012, 11:24 PM
||- - ronald   QUOTE (AndyG @ Oct 15 2012, 01:24 AM) My ...   Oct 15 2012, 08:56 AM
|- - mcaplinger   QUOTE (ronald @ Oct 14 2012, 11:09 AM) I ...   Oct 14 2012, 07:15 PM
|- - ronald   QUOTE (mcaplinger @ Oct 14 2012, 09:15 PM...   Oct 14 2012, 07:56 PM
|- - mcaplinger   QUOTE (ronald @ Oct 14 2012, 12:56 PM) So...   Oct 14 2012, 08:32 PM
|- - DDAVIS   Unfortunately this article is behind a paywall, bu...   Oct 14 2012, 09:05 PM
|- - vikingmars   QUOTE (DDAVIS @ Oct 14 2012, 11:05 PM) - ...   Oct 14 2012, 11:11 PM
- - Zeke4ther   That definitely looks better. The black strut loo...   Oct 14 2012, 05:25 PM
- - Deimos   I tend to be more on the side of expecting the sky...   Oct 14 2012, 10:40 PM
|- - ngunn   QUOTE (Deimos @ Oct 14 2012, 11:40 PM) On...   Oct 14 2012, 11:00 PM
|- - stevesliva   QUOTE (Deimos @ Oct 14 2012, 06:40 PM) Th...   Oct 14 2012, 11:39 PM
|- - mcaplinger   QUOTE (Deimos @ Oct 14 2012, 03:40 PM) Un...   Oct 15 2012, 04:45 AM
||- - Deimos   Smith & Lemmon 1999 (MPF special issue) talks ...   Oct 15 2012, 08:32 AM
||- - mcaplinger   QUOTE (Deimos @ Oct 15 2012, 01:32 AM) Sm...   Oct 15 2012, 04:55 PM
|- - vikingmars   QUOTE (Deimos @ Oct 15 2012, 12:40 AM) I ...   Oct 16 2012, 08:26 AM
- - EdTruthan   Sorry for the long post but if this works as a fai...   Oct 15 2012, 07:26 PM
|- - mcaplinger   QUOTE (EdTruthan @ Oct 15 2012, 12:26 PM)...   Oct 15 2012, 08:34 PM
|- - EdTruthan   QUOTE (mcaplinger @ Oct 15 2012, 01:34 PM...   Oct 16 2012, 02:38 AM
- - ngunn   It looks (on my monitor, to my eyes, adjusted to c...   Oct 15 2012, 08:46 PM
- - ronald   With Deimos arguments above (40:60 - sky:sun) we a...   Oct 15 2012, 08:49 PM
- - atomoid   the calibration target is looking pretty dusty alr...   Oct 16 2012, 12:08 AM
|- - mcaplinger   QUOTE (atomoid @ Oct 15 2012, 05:08 PM) t...   Oct 16 2012, 12:22 AM
- - ronald   I'm still somewhat puzzled with the brightness...   Oct 18 2012, 10:42 AM
- - Ant103   Ronald, you just can't made deduction starting...   Oct 18 2012, 11:07 AM
|- - mcaplinger   QUOTE (Ant103 @ Oct 18 2012, 04:07 AM) So...   Oct 18 2012, 04:12 PM
|- - ronald   Absolutely right regarding percieved brightness an...   Oct 18 2012, 05:21 PM
||- - atomoid   Ronald's links reveal the shadows depict the s...   Oct 19 2012, 12:24 AM
|- - fredk   QUOTE (mcaplinger @ Oct 18 2012, 04:12 PM...   Oct 18 2012, 05:56 PM
|- - mcaplinger   QUOTE (fredk @ Oct 18 2012, 10:56 AM) Wha...   Oct 19 2012, 05:57 AM
- - ronald   I can Even on the now stretched image above t...   Oct 18 2012, 01:05 PM
- - ugordan   Mastcam images should be your reference point, not...   Oct 18 2012, 02:49 PM
6 Pages V  < 1 2 3 4 > » 


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 10th June 2024 - 11:44 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.