Possible to convert a Vertical Perspective to Mercator?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Dubhghlas
Posts: 2
Joined: 2012-07-07T20:26:52-07:00
Authentication code: 13

Possible to convert a Vertical Perspective to Mercator?

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible to convert a Vertical Perspective to Mercator?

Post 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.
Dubhghlas
Posts: 2
Joined: 2012-07-07T20:26:52-07:00
Authentication code: 13

Re: Possible to convert a Vertical Perspective to Mercator?

Post 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.
Post Reply