IPB
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

Polar Projections, turning a 360 degree pan into a...
Phil Stooke
post Jun 13 2005, 08:19 PM
Post #1


Solar System Cartographer
****

Group: Members
Posts: 10265
Joined: 5-April 05
From: Canada
Member No.: 227



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


--------------------
... because the Solar System ain't gonna map itself.

Also to be found posting similar content on https://mastodon.social/@PhilStooke
Maps for download (free PDF: https://upload.wikimedia.org/wikipedia/comm...Cartography.pdf
NOTE: everything created by me which I post on UMSF is considered to be in the public domain (NOT CC, public domain)
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Phil Stooke
post Jun 25 2005, 01:48 PM
Post #2


Solar System Cartographer
****

Group: Members
Posts: 10265
Joined: 5-April 05
From: Canada
Member No.: 227



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


--------------------
... because the Solar System ain't gonna map itself.

Also to be found posting similar content on https://mastodon.social/@PhilStooke
Maps for download (free PDF: https://upload.wikimedia.org/wikipedia/comm...Cartography.pdf
NOTE: everything created by me which I post on UMSF is considered to be in the public domain (NOT CC, public domain)
Go to the top of the page
 
+Quote Post
dilo
post Jun 25 2005, 03:04 PM
Post #3


Senior Member
****

Group: Members
Posts: 2492
Joined: 15-January 05
From: center Italy
Member No.: 150



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)!


--------------------
I always think before posting! - Marco -
Go to the top of the page
 
+Quote Post
djellison
post Aug 29 2005, 10:57 AM
Post #4


Founder
****

Group: Chairman
Posts: 14457
Joined: 8-February 04
Member No.: 1



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
Go to the top of the page
 
+Quote Post
dilo
post Sep 14 2005, 09:03 PM
Post #5


Senior Member
****

Group: Members
Posts: 2492
Joined: 15-January 05
From: center Italy
Member No.: 150



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!
Attached thumbnail(s)
Attached Image
Attached Image
Attached Image
 


--------------------
I always think before posting! - Marco -
Go to the top of the page
 
+Quote Post
dilo
post Sep 14 2005, 09:05 PM
Post #6


Senior Member
****

Group: Members
Posts: 2492
Joined: 15-January 05
From: center Italy
Member No.: 150



remaining attachments:
Attached thumbnail(s)
Attached Image

Attached Image
 


--------------------
I always think before posting! - Marco -
Go to the top of the page
 
+Quote Post

Posts in this topic
- Phil Stooke   Polar Projections   Jun 13 2005, 08:19 PM
- - um3k   I suspect step 4 could be made (much) easier by us...   Jun 13 2005, 09:33 PM
- - Phil Stooke   I have always stayed away from the displace filter...   Jun 14 2005, 01:33 AM
|- - dilo   Phil, thank you very much for sharing these infos....   Jun 14 2005, 03:49 AM
|- - dilo   Hi, just managed to make polar projection through ...   Jun 25 2005, 08:35 AM
- - Decepticon   Does anyone know how each rover is doing with sola...   Jun 25 2005, 12:52 PM
- - Phil Stooke   Dilo, very nice polar projection. I have never tr...   Jun 25 2005, 01:48 PM
|- - dilo   Hi Phil, I'm happy you like it! I have to...   Jun 25 2005, 03:04 PM
|- - djellison   QUOTE (dilo @ Jun 25 2005, 03:04 PM)Hi Phil, ...   Aug 29 2005, 10:57 AM
|- - dilo   QUOTE (djellison @ Aug 29 2005, 10:57 AM)I...   Sep 14 2005, 09:03 PM
|- - dilo   remaining attachments:   Sep 14 2005, 09:05 PM
- - Phil Stooke   I mentioned the heatshield map, and I just posted ...   Jun 25 2005, 07:23 PM
|- - dilo   Really funny and useful, I think . Wath do you ...   Jun 26 2005, 05:34 AM
- - Phil Stooke   Dilo, your new projections are very good. I hope ...   Jun 26 2005, 02:03 PM
- - Bill Harris   FWIW, PaintShop Pro has a Polar Coordinate distort...   Jun 26 2005, 02:21 PM
|- - dilo   QUOTE (Bill Harris @ Jun 26 2005, 02:21 PM)FW...   Jun 26 2005, 08:39 PM
- - Bill Harris   With PSP8, it's under Effects->Distortion ...   Jun 28 2005, 10:38 AM
|- - dilo   Thanks, Bill... I was using PSP7, so this could be...   Jun 28 2005, 07:44 PM
- - Bill Harris   Absolutely! The availability of these images ...   Jun 29 2005, 02:53 AM
- - Nix   That's a fact Bill! There are so many imag...   Jul 1 2005, 07:52 AM
|- - dilo   QUOTE (NIX @ Jul 1 2005, 07:52 AM)I've be...   Jul 1 2005, 08:29 PM
|- - tedstryk   It would be neat to have a gallery system akin to ...   Jul 1 2005, 09:18 PM
- - 4th rock from the sun   Perhaps we could "store" the images on t...   Jul 1 2005, 10:53 PM
- - djellison   Well - there are some utils out there to generate ...   Jul 4 2005, 01:49 PM
- - Ian R   Slightly OT, here's a polar projection of a pa...   Sep 3 2005, 04:11 AM
- - djellison   VERY cool...only problem, I wanted it to do the th...   Sep 14 2005, 09:35 PM


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 17th December 2024 - 12:25 AM
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.