Skip to content

Instantly share code, notes, and snippets.

@ahojnnes
ahojnnes / camera.py
Created August 14, 2012 10:20 — forked from bdholt1/camera.py
Camera class
import numpy as np
from scipy import linalg
def RawDepthToMeters(depthValue):
"""
Convert a kinect depth value to meters
"""
if (depthValue < 2047):
return float(1.0 / (float(depthValue) * -0.0030711016 + 3.3309495161))