Created
May 6, 2014 02:19
-
-
Save TakashiNakagawa/ef67535d676baf823932 to your computer and use it in GitHub Desktop.
computer vision5章
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
#!/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