# Convert pixel from perspective to equirectangular

**URL:** https://forum.opencv.org/t/convert-pixel-from-perspective-to-equirectangular/17602
**Category:** Python
**Created:** [May 10, 2024, 6:15pm UTC](https://forum.opencv.org/t/convert-pixel-from-perspective-to-equirectangular/17602 "2024-05-10T18:15:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![markowanga](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@markowanga](https://forum.opencv.org/u/markowanga)
#### Post date: [May 10, 2024, 6:15pm UTC](https://forum.opencv.org/t/convert-pixel-from-perspective-to-equirectangular/17602/1 "2024-05-10T18:15:33Z")

</div>

Hello,  
I have a calculation problem. I have a perspective from equirectangular (with phi [-90, 90] and theta [0, 360]) and I wan’t to convert one pixel to equirectangular equivalent. I have searched Internet and GitHub and found only sth like this [GitHub - timy90022/Perspective-and-Equirectangular: A tool to transfer Perspective between Equirectangular](https://github.com/timy90022/Perspective-and-Equirectangular) – it can convert but whole image – I need to map only one pixel in fast time.

I have this input:

- theta
- phi
- fov
- size of perspective
- size of equirectangular
- coordinates of pixel (in perspective)

I have found also this [Convert Cubemap pixel coordinates to equivalents in Equirectangular - OpenCV Q&A Forum](https://answers.opencv.org/question/180430/convert-cubemap-pixel-coordinates-to-equivalents-in-equirectangular/) , but I need something more than 6 perspectives.

Thank you for help 🙂
