IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Flare Removal, it is so much easier with MER images
PDP8E
post Nov 26 2011, 06:21 AM
Post #1


Member
***

Group: Members
Posts: 807
Joined: 10-October 06
From: Maynard Mass USA
Member No.: 1241



One of the things I have been working on lately is removing 'flares' from color OPPY's images (L247)
It is fairly straight forward... if one filter is saturated, steal the pixels from a non-saturated image.

I can't figure out how to do this in Photoshop, so I have a few home-brew C/C++ programs that can deal with the filter images at the pixel level.

What started me on this project was that when one day I was looking at Google Maps (GM not GE) for my friend's new house in a nearby town. I saw something unusual. It was an airliner almost over his house! Unlike the random airplanes found on GM, this one had a rainbow of colors around it. Ah Hah! the plane was moving fast. and the other plane taking the picture was moving as fast in the opposite direction. The picture taking plane's camera was reading out the RGB in some internal order and produced this psychedelic sequentially B-G-R image of a moving aircraft. I could fix this! (so I thought)

When I deconstructed the picture into the the 3 filters, I found out there were actually 4 images: R, G, B, and a B/W image. The B/W was displaced in each filter by 20( R ) ,40( G ) or 60( B ) pixels.

What the heck was going on! I looked into the RGB filters available on cameras and found out that the usual Bayer filter, where every pixel is covered by a Red or Green or Blue filter, is not the only configuration. There are many. I believe the one used by the high flying 'image taking plane' was a panchromatic filter. It has RGB and B/W (they call it an RGBW)

To make a long story short, the plane in the image was banking to its right 25 miles westward of Boston's Logan Airport. The top wing is up, you can see the forward and aft doors on that side compared to the bottom side of the fuselage). This serendipitous alignment caused a massive sun glint off the horizontal features ( wings and horizontal stabilizers) . The RGBW camera taking the picture captured the frame like so: image the Blue (then movement) then the Green (movement) , then the Red (movement), and then the B/W. Internally the camera reads out the B+B/W, then G+B/W and then R+B/W. The massive sun glint is why the RGBs are saturated ...full on blue, green and red... and the B/W is over-saturated... only the wing outlines are white.

You can see from the RGBW filter matrix in the attached image why this makes sense.

After five or six false starts, I finally figured this all out. Attached you will see a reconstructed B/W image (the 'fourth' filter) with as much of the other filters I could steal pixels from.

By the way, In the larger images I was working on, you can clearly see that that the plane is a Southwest B737. The picture taking plane was headed in the other direction, making the speed difference between the two, upwards of 1000 MPH and hence making the 'camera confusion' more prominent

You can find the image in Google Maps over the 'Town Forest' of Carlisle Massachusetts.

As funny as sounds... MER images are so much simpler.

Attached Image


--------------------
CLA CLL
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 28th March 2024 - 08:10 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.