-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index out of bounds exception #1
Comments
Hi, thanks for your solution. I also encountered this problem. However, when I tried your solution, I found another issue. As we know, the first pixel and the last pixel on the latitude of an equirectangular image are continuous, which means the pixel i+1 should be 0 rather than width when the pixel i is the last pixel. Therefor, I think the correct solution should be the following. First, you can change line 62 Then add the following after line 64:
Finally, in order to correct the bilinear interpolation, the
Hope it helps. |
If you install
then you don't need the handcrafted |
Hey, could you tell me how you were able to run this program please? |
Hi, thanks for sharing the code. Your solution has been really helpful for me!
However, I found a small issue. You can replicate it by changing line 20:
self.FOV = [0.45, 0.45]
to
self.FOV = [0.3, 0.3]
and line 113:
center_point = np.array([0.5, .5])
to
center_point = np.array([0.5, .9])
It triggers the exception at line 76, in _bilinear_interpolation.
To solve it, I added the following, after line 64:
I think the error occurs because for the interpolation, you take pixel i and pixel i+1, and in some specific cases, pixel i is already the last pixel (either in width or height).
Hope it helps.
The text was updated successfully, but these errors were encountered: