This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from skimage.feature import peak_local_max | |
from skimage.feature.corner import corner_harris, corner_subpix, corner_foerstner | |
from skimage import data | |
from skimage.io import imsave | |
from skimage.util import img_as_float, img_as_ubyte | |
from skimage.color import rgb2gray | |
import pylab as plt | |
import numpy as np | |
import cv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import numpy as np | |
from skimage.measure import EllipseModel | |
# Play around with sigma here, the larger the the better you notice the | |
# qualitiy difference between algebraic and geometric fit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cython: cdivision=True | |
#cython: boundscheck=False | |
#cython: nonecheck=False | |
#cython: wraparound=False | |
cimport numpy as cnp | |
import numpy as np | |
from libc.math cimport sin, cos, M_PI, round |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import json | |
import copy | |
from collections import OrderedDict | |
import matplotlib.pyplot as plt | |
from matplotlib.ticker import FuncFormatter | |
import dateutil.parser | |
from dateutil.relativedelta import relativedelta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%GHOSTSCRIPT Calls a local GhostScript executable with the input command | |
% | |
% Example: | |
% [status result] = ghostscript(cmd) | |
% | |
% Attempts to locate a ghostscript executable, finally asking the user to | |
% specify the directory ghostcript was installed into. The resulting path | |
% is stored for future reference. | |
% | |
% Once found, the executable is called with the input command string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[New Thread 0x7ffff46c1700 (LWP 39858)] | |
[New Thread 0x7ffff3ec0700 (LWP 39859)] | |
[New Thread 0x7ffff36bf700 (LWP 39860)] | |
[New Thread 0x7ffff2ebe700 (LWP 39861)] | |
[New Thread 0x7ffff26bd700 (LWP 39862)] | |
[New Thread 0x7ffff1ebc700 (LWP 39863)] | |
[New Thread 0x7ffff16bb700 (LWP 39864)] | |
[New Thread 0x7ffff0eba700 (LWP 39865)] | |
[New Thread 0x7ffff06b9700 (LWP 39866)] | |
[New Thread 0x7fffefeb8700 (LWP 39867)] |