Map cartesian coordinates on the pano face image to sperical coordinates on the panorama
I have a panorama of size 5376x2388. Using the krpano tool, I am able to extract 6 faces of size 1712x1712. If I have a coordinate on one of the faces wrt to the top left of the image, how do I go about mapping those (x, y) coordinates into spherical (h, v) coordinates that can be used on the krpano javascript interface?