Skip to content

Instantly share code, notes, and snippets.

View NitishMutha's full-sized avatar
I may be slow to respond.

Nitish Mutha NitishMutha

I may be slow to respond.
View GitHub Profile
@NitishMutha
NitishMutha / equirectangular_to_NFOV.py
Created August 24, 2017 20:32
Equirectangular to Planar projection using Gnomonic projections
from math import pi
import numpy as np
import imageio as im
class NFOV():
def __init__(self, height=400, width=800):
self.FOV = [0.45, 0.45]
self.PI = pi
self.PI_2 = pi * 0.5
self.PI2 = pi * 2.0