fuenwang / Equirec2Perspec

A tool to project equirectangular panorama into perspective images
MIT License
269 stars 55 forks source link

How can i get cordinates? #3

Open eunseoshin opened 4 years ago

eunseoshin commented 4 years ago

I split the 360-degree image into 18 conventional images. I want to get coordinates of each image. Is it possible?

fuenwang commented 4 years ago

You mean coordinate on equirectangular? https://github.com/fuenwang/Equirec2Perspec/blob/master/Equirec2Perspec.py#L71 The lon and lat is the coordinate.

eunseoshin commented 4 years ago

I want to know corners' cordinates on equirectangular. When i get the lon and lat lots of numbers appear.

fuenwang commented 4 years ago

The lon and lat is the coordinate of h x w which is consistent with the perspective images. So you can just use lon[0, 0] and lat[0, 0] ...... to get the coordinate of corners.

eunseoshin commented 4 years ago

Thanks! I solved it :)