Skip to content

Instantly share code, notes, and snippets.

View osdf's full-sized avatar

Christian osdf

View GitHub Profile

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

@osdf
osdf / keybase.md
Last active August 29, 2015 14:00
keybase.md

Keybase proof

I hereby claim:

  • I am osdf on github.
  • I am osi (https://keybase.io/osi) on keybase.
  • I have a public key whose fingerprint is 28F9 8669 C94F C777 3AFC A7DD 926D C391 FA00 DA27

To claim this, I am signing this object:

@osdf
osdf / gist:5133737
Created March 11, 2013 11:55
Playing with basic MCMC.
"""
Some python code for
Markov Chain Monte Carlo and Gibs sampling
by Bruce Walsh
"""
import numpy as np
import numpy.linalg as npla
@osdf
osdf / logreg_adv_index.lua
Created December 3, 2012 11:04
First steps with torch -- logistic regression
require 'torch'
require 'nn'
require 'optim'
trainset = torch.load("mnist.t7/train_32x32.t7", "ascii")
trainset.data = trainset.data:resize(60000, 32*32)
trainset.data = trainset.data:double()
test = torch.load("mnist.t7/test_32x32.t7", "ascii")
test.data = test.data:resize(10000, 32*32)
@osdf
osdf / test_numpy.py
Created October 5, 2012 21:27
Testing numpy and scipy setups
#!/usr/bin/env python
import numpy
import sys
import timeit
try:
import numpy.core._dotblas
print 'FAST BLAS'
except ImportError:
print 'slow blas'
#! /usr/bin/env python
import numpy
import time
import scipy.linalg as linalg
try:
import numpy.core._dotblas
print 'Using ATLAS:'
except ImportError:
print 'No ATLAS:'
@osdf
osdf / seq_lr.py
Created May 19, 2011 06:30
Interactive sequential linear regression
#!/usr/bin/env python
"""
__author__: Martin Felder
Demo for sequential bayesin learning
for linear regression models. See
Chapter 3.3 of 'Pattern recognition
and machine learning' by Chris Bishop, 2001
"""
@osdf
osdf / beta.py
Created May 3, 2011 22:27
Plot beta distribution, parameters a and b are provided via cmd line.
import sys
import scipy as sp
from scipy.special import gamma
import pylab
a = float(sys.argv[1])
b = float(sys.argv[2])