Help - Search - Members - Calendar
Full Version: Polar Projections
Unmanned Spaceflight.com > Mars & Missions > Past and Future > MER > Tech, General and Imagery
Phil Stooke
I have posted several polar projections of MER panoramas (and Apollo and Surveyor pans in other places). This is how I do it...

I use Photoshop... any recent version is OK.

The tool to use is Filter>Distort>polar coordinates.

polar coordinates can work both ways - rectangular coordinates to circular or back. In map terms it lets you go from a cylindrical projection to an azimuthal (polar) one... in fact I have frequently used this with maps (for instance, take the cylindrical map of Titan from the JPL Cassini website, crop the southern half, and turn it into a pole-centered view of the southern hemisphere...)

For these pans you do the following.

1. 'polar coordinates' turns a rectangle into an ellipse. If you want a circle you have to make the rectangle a square. So I begin by resampling the pan to a square shape.. a 5000 by 1000 pixel pan becomes a 3000 by 3000 square. I cut off any unwanted sky first.

2. 'polar coordinates' puts the top of the rectangle at the center of the circle. So rotate the pan 180 degrees.

3. Then press the button and see what happens! You get a pan with the same horizon foreshortening as the original but wrapped into a circle.

4. I prefer a more maplike geometry, so the foreshortened distant areas need to be expanded relative to the foreground. I find it easier to do it this way:
- in step 1, I begin by making the 5000 by 1000 pan tall and narrow, maybe 3000 (wide) by 8000 (high). Then I select everythig except the near-horizon area and use edit>transform>scale (in my version, layer>transform>scale in others) to shrink the height of the selection about 10% or 15%. I keep repeating that with progressively smaller selections until at the end I'm only selecting a narrow strip of foreground and shrinking that. The result: the pan is now stretched higher near the horizon, and compressed near the foreground. Try it - trial and error will get decent results quite soon. NOTE: you could do this with some calculated figures to get more accurate geometry, but I just guess.

- then that modified pan is adjusted to be 3000 by 3000 pixels... usually with a bit of white space included at the bottom.

- then on to step 3 and see how it looks.

Let's keep them coming!

Phil
um3k
I suspect step 4 could be made (much) easier by using the "Displace" filter. Try it out. wink.gif
Phil Stooke
I have always stayed away from the displace filter, for absolutely no reason, but I just did some experiments with it and I see it could be made to work. Now, if any people with more experience making displacement maps would like to figure it out in more detail I'd be very pleased! Or I will get to it eventually.

Phil
dilo
Phil, thank you very much for sharing these infos...!
dilo
Hi, just managed to make polar projection through PovRay rendering software; I compare this to "official" image published after stuck... some imperfections, but I think can be improved (I'm already dooing, is a work in progress wink.gif ):
Decepticon
Does anyone know how each rover is doing with solar power charging?

I've noticed allot of wind erosion in the pictures. Is this helping keep the rovers panels clean?

NOTE: I posted this in the wrong forum, can someone move it to the correct place? wink.gif
Phil Stooke
Dilo, very nice polar projection. I have never tried using PovRay, but this is very interesting. I look forward to seeing more of your work with this.

I have a daydream of making polar projections from several nearby locations and fitting them together to make a larger map. The only place I have done it so far (using JPL versions) is the heatshield, where it worked very well. I will post it later. But it would be interesting to try it for the inside of Endurance or Methuselah where we have a lot of pans all close together. Maybe we could work together on this.

Phil
dilo
Hi Phil, I'm happy you like it!
I have to make an important correction about the image geometry: this isn't a polar projection (where elevation angle should increase radially from center); this is a "vertical projection", where I used original image to texture a flat terrain using "spherical" map tool...
Herebelow you find a slightly improved version (on the right, with center detail on the left/top) and also a low-elevation angle version (left/bottom):

I was thinking to use PovRay (or other 3D rendering program) for a while because is a very powerful instrument... do you remember Erwann which posted some time ago some nice mosaics stitched with this SW? I'm convined that using this approach (project images as textures on a 3D model) can have really great potential, but implementation is not straightforward unsure.gif
... in theory, this should allow to:
1) enhanced stitching, without parallax effect due to small motion of Nav/Pan camera betrween two adjacent frames (some parallax remain on the closest objects, without detailed 3D model).
2) exact re-projection over soil, but only if one knows the exact 3D structure of this soil or if terrain is quite flat (like in my Opportunity image).

In both applications, it would be very useful to know exact pointing orientation of each image... I know this is possible, at least from more tecnical sources (like MER analyst book) but I do not know exactly how...

There are also other issues, related to non rigorous stitch obtained through AutoStitch (this is the reason for the imperfections visible in my projection, especially if compared to the official one...). With almost-standars settings, this sowtware makes also undesired rescaling of some images in the mosaic, so projection geometry is not very reliable mad.gif .
Probably, I need to manually set some options inside this program (I didn't find a true tutorial, however); best thing, anyway, should be to directly stitch/project with PovRay (knowing mentioned pointing values)!
Phil Stooke
I mentioned the heatshield map, and I just posted it under "opportunity route maps". It's only a composite of two JPL vertical projections. But it would be interesting to try this for the Paso Robles/Methuselah area with vertical projections made at each location.

That would take quite a bit of guessing about slopes etc. But even if not exactly right it would be interesting and dare I say... fun!

Phil
dilo
Really funny and useful, I think wink.gif .
Wath do you think about new polar/vertical projection I posted in the "Oppy route map thread?
Is hard to resist the idea to make a MER 3D rover and put in in this soil... rolleyes.gif Old question, but did someone made/found this model (not necessarely made with PovRay, 3D studio is good too)?
Phil Stooke
Dilo, your new projections are very good. I hope we will see more of them.

There were some JPL released images of the rover decks which were used once before to fill in the central hole.

Phil
Bill Harris
FWIW, PaintShop Pro has a Polar Coordinate distortion filter and it seems to work much like PShop's. My first attempts resemble your's but are not close to identical.

I'll keep fiddling with it. What is needed is a simple test rectangular pan to evaluate the various software.

--Bill
dilo
QUOTE (Bill Harris @ Jun 26 2005, 02:21 PM)
FWIW, PaintShop Pro has a Polar Coordinate distortion filter ...
*

Hi Bill, I normally use PSP but didn't know this feature... pls, under which menu?
thanks.
Bill Harris
With PSP8, it's under Effects->Distortion Effects->Polar Coordinates.

I haven't had time to work with this effect, but it seems to work well. When I get an evening free to tinker with it I plan to take Phil's "How-To" message, a sample pan and learn to use it.

In a way, the excellent work shown here has held me back: why spend time doing my own polar pans when I can come here and quickly download them? wink.gif

--Bill
dilo
Thanks, Bill... I was using PSP7, so this could be the reason I didn't find it! rolleyes.gif
About the great availability of beautiful images compositions/elaborations in the Forum, I agree with you. However, this is also a stimulus for me, in order to improve my personal results... sometimes if funny to put directly my hands and create something new, then ask ot other people "hey, wath do you think of this?" wink.gif Great satisfaction for me and, I hope, amusement for others!
Bill Harris
Absolutely! The availability of these images simply hits my lazy streak; but it also provides an incentive to try my own imaging. After all, there are thousands of raw images and hundreds of us, so there is plenty to go around.

--Bill
Nix
That's a fact Bill! There are so many images and so many more to come, hopefully!
I've been thinking it would be great to have a thumbnail-page for the work of the posters here. I've been looking at such a collection by running a PS-gallery batch and it looks real nice. There is plenty to process and here's indeed the place to get motivated..and learn from each other smile.gif

Nico
dilo
QUOTE (NIX @ Jul 1 2005, 07:52 AM)
I've been thinking it would be great to have a thumbnail-page for the work of the posters here...
*

This is a great idea, Nico!
I would like to know Doug opinion on this gallery...
tedstryk
It would be neat to have a gallery system akin to our own "Planetary Photojournal." It would be cool if it could be queried by different criterion, such as date (of original data), mission, object, author, etc.
4th rock from the sun
Perhaps we could "store" the images on this forum by creating some special topics sorted by mission.
The images could be uploaded to free image servers (there are some decent ones around) and the thumbnails posted here.
djellison
Well - there are some utils out there to generate gallerys using PHP/SQL etc - I'll look into it smile.gif

Doug
djellison
QUOTE (dilo @ Jun 25 2005, 03:04 PM)
Hi Phil, I'm happy you like it!
I have to make an important correction about the image geometry: this isn't a polar projection (where elevation angle should increase radially from center); this is a "vertical projection", where I used original image to texture a flat terrain using "spherical" map tool...


I've not been able to figure that out myself - but I need a favour - could you take this mosaic - http://marswatch.astro.cornell.edu/pancam_...b_al_khali.html - and project it onto a flat surface like you have with other imager, and render it out as quite a large jpg?

I used 3ds max myself - but can not figure out how to do that sad.gif

Doug
Ian R
Slightly OT, here's a polar projection of a pan of Plymouth Hoe that I took earlier this summer. I followed Phil's instructions and used the Polar Coordinates feature in PSP 8.
dilo
QUOTE (djellison @ Aug 29 2005, 10:57 AM)
I've not been able to figure that out myself - but I need a favour - could you take this mosaic - http://marswatch.astro.cornell.edu/pancam_...b_al_khali.html  - and project it onto a flat surface like you have with other imager, and render it out as quite a large jpg?

I used 3ds max myself - but can not figure out how to do that sad.gif

Doug
*


Doug, I'm very sorry but only now I discovered this post! sad.gif
I prepared vertical projection you requested (hoping you're still interested to have it!) and results appear nice to me...

Some importand notes are need:
1) due to huge original panorama dimension, after download I had to reduce it to 60% of original size ("only" 13668 pixel wide); otherwise, PovRay is not able to handle it (at least, with 512 MB ram of my PC).
2) projection is not perfectly horizontal but is slightly inclined in order to flatten as much as possible the horizon (correction is less than 1 degree); in fact, if you look to original mosaic, horizon line follow a almost-sinusoidal profile.
3) In order to have more realistic result, I projected on a sphere with the Mars radius instead of an infinite plane.
4) No contrast/sharpness correction was made, even if images should greatly improve with these cosmetic operations... is up to you! wink.gif

I didn't know the scale you are interested, so I made four versions at different scales (1,3,10,25 cm/pixel, distance ranging from 10m to 500m) plus a pseudo-polar projection.
Due to images size, I needed to attach results in two consecutive posts (I used low-compression jpeg format, png original versions are more than 2MB each).
cool.gif Enjoy!
dilo
remaining attachments:
djellison
VERY cool...only problem, I wanted it to do the thankyou picture for Steve smile.gif

But i'm still going to print one our really large and chuck it on the wall, it represents Meridiani very well smile.gif

Doug
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.