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 , 14 years ago | |
---|---|
File size: 324 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function D = randpersp(numpts,numframes) |
2 | % produce a random set of projective images. We'll have no translation, for now. | |
3 | pts = rand(3,numpts); | |
4 | trans = rand(3*numframes,3); | |
5 | pts_trans = trans*pts | |
6 | D = []; | |
7 | for 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,:)]; | |
10 | end |
Note: See TracBrowser
for help on using the repository browser.