Help Shape the Future of Space Exploration

Join The Planetary Society Now  arrow.png

Join our eNewsletter for updates & action alerts

    Please leave this field empty
Blogs

Headshot of Emily Lakdawalla

Putting the Rhea puzzle together

Posted by Emily Lakdawalla

04-09-2007 18:34 CDT

Topics:

Well, I had intended to spend today preparing a post on the upcoming Iapetus flyby, but I got sidetracked because of an absolutely beautiful set of images that Cassini returned from the Rhea flyby that happened on August 30. During the encounter, Cassini's narrow-angle camera snapped 11 pictures of Rhea in a crescent phase, the ingredients for a 5,000-pixel-wide mosaic on the moon. How could I resist putting such a puzzle together?

Here are the images I started out with. (If you'd like to try this at home, here are links to the raw image files from the Cassini raw images website: N00090967 - N00090969 - N00090971 - N00090973 - N00090975 - N00090977 - N00090978 - N00090979 - N00090980 - N00090981 - N00090982) During the time that these images were taken, Cassini traveled about 10,000 kilometers, beginning at a range of 63,657 kilometers and ending at a range of 53,827 kilometers.

Eleven raw images of Rhea's crescent

NASA / JPL / SSI

Eleven raw images of Rhea's crescent
You may notice that there appears to be a gray shadow covering the right half of most of these images. Zooming in on the upper right corner of the bottom left image, you can see that every other line of the original image has one end that is covered with all-black pixels. This "every-other-line truncation" happens onboard the spacecraft as part of image compression, before the data is transmitted to Earth, so the missing data from those lines is lost forever. The best way to deal with this problem is to take each line of black pixels and replace it with a line of pixels that has values interpolated between the lines above and below it.
Every-other-line truncation

NASA / JPL / SSI

Every-other-line truncation
The every-other-line truncation in some Cassini images happens when the images are compressed using the onboard "LOSSLESS" compression scheme (which is obviously a bit of a misnomer, since it can and does lose spatial information). The algorithm is a variant of a Huffman encoder. It operates on pairs of lines and guarantees that the compressed image will be no more than half the size of the original image. If the encoder figures out that the two lines it is processing will be compressed more poorly than a 2:1 ratio, the encoder simply stops and truncates the rest of the second line. In an absolute worst-case scenario, the entire second line could be truncated. The algorithm was chosen because it is computationally inexpensive and because it is easy to predict how much space (no more than half the original image size) the compressed frames will take up on Cassini's solid-state recorders.
(Thanks to Gordan Ugarkovic for this explanation.)
There is a variety of ways to solve the every-other-line truncation problem, some of them more difficult than others. The easiest, for me anyway, is a filter in Photoshop called De-Interlace. Just select the area that's affected by the every-other-line truncation, then go to Filter > Video > De-Interlace, and boom! problem solved.
De-Interlacing a Cassini image with every-other-line truncation

NASA / JPL / SSI / Emily Lakdawalla

De-Interlacing a Cassini image with every-other-line truncation
The De-Interlace filter in Photoshop can repair Cassini images that are affected by every-other-line truncation.
So now we can start putting the pieces together. Here's what I got at the start of the assembly process.
Assembling the Rhea crescent mosaic

Assembling the Rhea crescent mosaic
Cassini took this mosaic starting at the lower right corner. It then moved left one frame, taking five frames up Rhea's terminator (the day/night boundary). Then it moved to the left one more frame, taking five frames going back down along Rhea's limb. Images match okay from one frame to the next in the sequence, but the mismatch gets pretty bad between the second and eleventh frames in the series at the bottom edge of the image. THe mismatch is so bad because as Cassini was taking these images, it was flying toward Rhea and also past it a little bit. This causes two problems: the scale doesn't match from image to image (as Cassini flies toward Rhea, the camera's fixed field of view covers a smaller and smaller footprint on the surface), and each successive image peeks over a little bit more of the limb (which causes features near the limb to stretch and grow from one image to the next).

What you have to do is to resize each of the frames a little bit, stretching them, and, for the ones at the bottom edge, rotating them a bit to get them to line up. In Photoshop, just press Control-T (or go to Image > Transform) and you'll get some handles on each layer to stretch and rotate it with. Here's what I get after that step:

Assembling the Rhea crescent mosaic

Assembling the Rhea crescent mosaic
The imaging team can do these "transformations," as they're called, much more exactly, because they have very precise knowledge of the position and orientation of the spacecraft and the target body in space when each image was taken. Without that information, you just have to move, stretch, and rotate the pieces by eye until they match up. It's not a product you can use for scientific research (such as counting craters to figure out ages), but it's pretty!

Not quite pretty enough, though. There is still a small amount of mismatch between tile edges. You can make that less obvious by feathering the edges of each frame. I do this by using the Eraser tool with a large soft paintbrush on each frame, only touching up the areas where each frame overlaps one below it. Here's what I get after that step:

Assembling the Rhea crescent mosaic

Assembling the Rhea crescent mosaic
Still, some more beautification is necessary. Shadowed parts of the moon aren't quite black enough for my taste. So next I'll adjust the levels of the image (Image > Adjustments > Levels) and make all the darkest pixels black.
Assembling the Rhea crescent mosaic

Assembling the Rhea crescent mosaic
Finally, I'll mess with the levels a little bit more to bring out some detail in the Sunlit areas, and rotate it so it fits better on a computer screen. Voilà! A beautiful image of Rhea.
Crescent Rhea

NASA / JPL / SSI / mosaic by Emily Lakdawalla

Crescent Rhea
Cassini took this image of Rhea in a crescent phase on August 30, 2007 from a distance averaging about 60,000 kilometers. There are a total of eleven frames in this mosaic, which was composed of raw images.
Tomorrow, Iapetus!

 
See other posts from September 2007

 

Or read more blog entries about:

Comments:

Leave a Comment:

You must be logged in to submit a comment. Log in now.
Facebook Twitter Email RSS AddThis

Blog Search

JOIN THE
PLANETARY SOCIETY

Our Curiosity Knows No Bounds!

Become a member of The Planetary Society and together we will create the future of space exploration.

Join Us

Featured Images

Orion's forward bay cover jettison

Astronaut’s-Eye View of NASA’s Orion Spacecraft Re-entry
A shift in shadows for Yutu, December 19(?), 2013
Yutu heads south, December 22, 2013
More Images

Featured Video

View Larger »

Space in Images

Pretty pictures and
awe-inspiring science.

See More

Join the New Millennium Committee

Let’s invent the future together!

Become a Member

Connect With Us

Facebook! Twitter! Google+ and more…
Continue the conversation with our online community!