Convert equirectangular spherical image to cube faces
Hello,
I would like to convert a spherical/equirectangular panoramic image into a cubical panoramic image - six images (tiles), one image per cube side.
Are there functions of OpenCV 2.4.x. to achieve this?
Thanks!
I do not think that there is any direct functionality that would achieve this, but you can try various methods to get the intended result.
Perhaps cutting up the main panoramic image, and then applying perspective (or other geometric) transforms and creating the 'cube'.
what on earth made your last attempt crash the apache server ? ;)
@berak hahahahha nice point ;-)
is there any chance, you can acquire the images, that spherical panorama was made from ?
if not, you'll have to undistort / reverse the spherical distortion using something like fisheye / remap / TPS.
The spherical image is stitched by using images I took, so yes, I have the original images, but they are 60 images merged together, so it would be easier to use directly the stitched image which is a flat image 360x180 image like the one in: http://wiki.panotools.org/Equirectang.... I agree that I have to convert the spherical image, this is why I am asking if there are OpenCV functions to do that.
Any help would be really appreciated.