source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/randpersp.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 324 bytes
Line 
1function D = randpersp(numpts,numframes)
2% produce a random set of projective images.  We'll have no translation, for now.
3pts = rand(3,numpts);
4trans = rand(3*numframes,3);
5pts_trans = trans*pts
6D = [];
7for i = 1:3:3*numframes
8  D = [D; pts_trans(i,:)./pts_trans(i+2,:)];
9  D = [D; pts_trans(i+1,:)./pts_trans(i+2,:)];
10end
Note: See TracBrowser for help on using the repository browser.