Page 1 of 1

Extracting subframes from spherical frame

Posted: 2017-08-12T05:15:34-07:00
by jumpjack
I have a 360° camera. I can view its images using an head mounted display, which shows a small portion of the whole image.
How can I use imagemagick to extract this portion, given looking direction and FOV?
Or should I use a different program?
I am on Windows 10.

Re: Extracting subframes from spherical frame

Posted: 2017-08-12T10:57:00-07:00
by fmw42
Is your 360 image a spherical panorama, a cylindrical panorama or a fisheye view? Can you post an example input image to some free hosting service and put the URL here? Do you have information about the viewing angles (top and bottom of the image) and fov for you camera? See some of my input examples at http://www.fmwconcepts.com/imagemagick/ ... /index.php or http://www.fmwconcepts.com/imagemagick/ ... /index.php regarding the type of information needed.

Perhaps what you need is http://www.fmwconcepts.com/imagemagick/ ... /index.php

Assuming it is a spherical panorama (latitude, longitude coordinates), then it is just a matter of converting the FOV to crop width and height and the direction to the offset to the center of the subsection from the look direction. What is your IM version? Can you post an example 360 images to some free hosting service and put the URL here, so we can test and explain further the computations.

Note that converting that subsection to a perspective view is harder and would need to be scripted.

I have a number of bash shell scripts that work with panoramas and fisheye views. But I have not done the subsection of the panorama to a perspective view. But I could work on that next week.

See my scripts at the link below.