Skip to content

Instantly share code, notes, and snippets.

@TakashiNakagawa
Created May 6, 2014 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakashiNakagawa/ef67535d676baf823932 to your computer and use it in GitHub Desktop.
Save TakashiNakagawa/ef67535d676baf823932 to your computer and use it in GitHub Desktop.
computer vision5章
#!/usr/bin/python
# -*- coding: utf-8 -*-
from PIL import Image
from pylab import *
execfile('load_vggdata.py')
# 3D点を同次座標にして射影する
X = vstack( (points3D,ones(points3D.shape[1])) )
x = P[0].project(X)
# 画像1の上に点を描画する
figure()
imshow(im1)
plot(points2D[0][0],points2D[0][1],'*')
axis('off')
figure()
imshow(im1)
plot(x[0],x[1],'r.')
axis('off')
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment