How to reverse the process like Perspec2Equirec?
Hi @fuenwang , Thanks for the amazing research. I have followed your work on Bifuse++ and 360 layout visualizer. You are awesome.
I have been looking at the Equirec2Perspec.py and wanted to reverse the process.
Image 1 - Original

Image 2 - Perspective

What if I made some changes in the 2nd image (output of Equi2Perspec.py) and want to stitch it back to the original (Image 1). How can I do that?
I assume that there will be some transformations that needs to be done on the Image 2 (perspective image) to change the projection lines and replace the patch with the updated one.
Hi,
I didn't implement Perspec2Equirec funtion. But I have implemented the funtion to transform a cubemap back to equirectangular. Basically, you could assume each perspective image as a plane, and calculate the intersection points of rays toward these plane from a equirectangular projection. You can refer to this code for more details. https://github.com/fuenwang/PanoramaUtility/blob/master/Utils/Cube2Equirec.py#L70