source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/shad_ints.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 415 bytes |
Line | |
---|---|
1 | function [M, INC,ERR] = shad_ints(fo, nframes, npoints,sigma) |
2 | % For now, I'll generate scenes with a surface normal drawn from |
3 | % a uniform intensity facing the camera. Lighting directions will |
4 | % be drawn from uniform density on some subset of the sphere to |
5 | % generate the appropriate fo. |
6 | |
7 | F = random_lights(nframes, fo); |
8 | P = random_scene(npoints); |
9 | |
10 | ERR = randn(nframes,npoints).*sigma; |
11 | M = F*P; |
12 | INC = M+ERR > 0; |
Note: See TracBrowser
for help on using the repository browser.