Page 1 of 1

Possible to convert a Vertical Perspective to Mercator?

Posted: 2012-07-07T20:36:26-07:00
by Dubhghlas
I have an image from the GOES weather satellite that is in it's normal Vertical Perspective projection. Would ImageMagick have a way to distort the image to a Mercator projection? I'm relatively new to ImageMagick so I'm pretty unsure of how to even begin the process. I anticipate that the image will be heavily distorted around the edges when stretched and I'm ok with that.

The satellite image
Image

Re: Possible to convert a Vertical Perspective to Mercator?

Posted: 2012-07-07T20:42:39-07:00
by fmw42
An exact method is not currently coded in IM 6, but I believe that Anthony has a desire to do cartographic transformations in IM 7 at some later time after it is released.

An approximate solution may be to use my script, fisheye2pano (or defisheye), at the link below if you are on Linux/Mac or Windows w/Cygwin.

Re: Possible to convert a Vertical Perspective to Mercator?

Posted: 2012-07-07T21:28:20-07:00
by Dubhghlas
When attempting to use the script I get this error:

Code: Select all

FILE ./satmaps/GOES15-mir.jpg DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE
The command I'm attempting is:

Code: Select all

./fisheye2pano.sh -v -90,0 -h 0 -f angle ./satmaps/GOES15-mir.jpg ./satmaps/test.jpg
EDIT: Doh! Never mind. I forgot I had ImageMagick for PHP installed but not the standard package. All is well. Thanks for the script! I'm going to give it a try right now.