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?
Map cartesian coordinates on the pano face image to sperical coordinates on the panorama
-
-
given a 3D cube with a pixel size of 1712, with x or y or z being +1712 or -1712
and the other two axes being the pixel coordinates on that planeh = Math.atan2(x, z)
v = -Math.atan2(-y, Math.sqrt(x * x + z * z)) -
Thanks bruh.
Took me some time to figure it out, but you are a life saver.
-
welcome to the forum :)
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!