Vignetting, discussion about methods of resolution |
Vignetting, discussion about methods of resolution |
Aug 24 2005, 07:37 AM
Post
#1
|
|
Member Group: Members Posts: 877 Joined: 7-March 05 From: Switzerland Member No.: 186 |
Hi Nirgal and all, I would like to discuss about vignetting and methods of resolution for it. I'm mainly interested in mathematical methods that could automatically calculate and adjust the right grey value for each pixel in a single picture.
My current method works with more or less transparent layers over the original picture that so roughly are able to balance the grey values. A perfect layer have to be the exact inverted brightness difference of each picture with this shadow effects. This method is very effective if you get the correct inverted values. These shots of the Mars sky come nearly at such a perfect mask, but not always. And of course the center of the pictures lose much of theirs original brightness/luminance sadly. I have in mind a mathematical method that can adjust each grey value in a pic in order to obtain a completely balanced brightness over the entire picture. But I'm not in the position to reach that. I only know one have to start with the calculation of the grey values in the center of the picture. In the center are quasi the reference values of the whole picture, if I'm correct. Is there a possibility (mathematical method) to get (roughly) the same brightness and luminance like in the center over the whole picture from the MERs? Greetings, Peter -------------------- |
|
|
Aug 24 2005, 11:29 PM
Post
#2
|
|
Member Group: Members Posts: 713 Joined: 30-March 05 Member No.: 223 |
Hi Tman,
mathematically, we can describe vignetting effects as a very low frequency change in pixel brightness. Unfortunately there is no "perfect" algorithm that could always distinguish the Vignetting from other low frequency brightness variations that belong to the "real" picture content and are therefore not to be canceled out. So I'm afraid that there will be no better method than to use the complete reference frames where the camera points to a uniformly bright sky. So actually I think your method of using the Navcam reference sky-images is already quite good ! The only problem that I can see is that the sky is probably not uniform and that, if there is a time span between the reference image and the actual shot, it may not work well because of intermediate changes n light conditions. As for my "unstrip" program I had to choose a different approach, because it is mainly intended to remove the dark "strips" (at the frame seams) in already stitched conplete panoramas. The algorithm works as follows (simplified) 0. convert the image to LAB color space to handle color and luminance independently 1. try to find a *horizontal* strip in the image that is as uniform in brightness as possible. 2. apply a gaussian smoothing filter to each line of the reference area 3. "merge" step: calculate the reference line as an average of all lines in the reference area. 4. take the avreage brightness of the reference area as the reference luminance. 5. we now have our horizontal "brightness correcting curve", but it may still have undesired high frquency variations (despite the smoothing) 6. so,as a last step I create a b-spline (or linear) interpolated version of the correction curve. 7. apply the correction curve to each individual line in the image (i.e. brightness(pixel(x,y)) = brightness(pixel(x,y)) + brightness(correction-curve(x)) |
|
|
Lo-Fi Version | Time is now: 31st October 2024 - 11:03 PM |
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE 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. |