converting equirectangular panorama to cube faces

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
HaLo2FrEeEk

converting equirectangular panorama to cube faces

Post by HaLo2FrEeEk »

I need to know (if there is) a way to use ImageMagick to convert an equirectangular spherical panorama to a set of cube faces. I have a very large equirect. Panorama (greater than 8000 pixels wide) and i'd like to get it into a cubic format. I'd prefer if I could get each face as a seperate image, and I also need it to be doable via commandline from a C# program that I'm writing.

I know that IM has the ability to take a set of cube faces and put them into a single cubic projection strip, but I need to take an existing equirect image and make it cubic. The program I'm writing needs to be automatic, so I have to be able to take a user's input picture and automatically convert it to cube faces so I can process them.

Is something like this possible? I'd really rather not require my users download a second program to do the cube face conversion if I can help it.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: converting equirectangular panorama to cube faces

Post by fmw42 »

IM does not have this feature at this time, to my knowledge. I wrote some scripts to process fisheye images, but did not do that (yet). My scripts are available at the link below if any of them might help you. Unfortunately, they currently are very slow due to the use of -fx rather than a proper compiled function specific for such distortions.
HaLo2FrEeEk

Re: converting equirectangular panorama to cube faces

Post by HaLo2FrEeEk »

Ok ten. I know this is an ImageMagick forum and all, but can anyone suggest another tool that might achieve this?
Post Reply