I want to reverse the effect of a spherical image such as this one:
Provided the image, I would like to be able to access any part of it so that the areas that are stretched are no longer stretched, i.e. to know how to map the pixels. For example, at the top of the picture the clouds are stretched.
To be exact, I would like to crop out only a random part of the image and view it, very similar to what the web 360 video players are doing.