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

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

Added original make3d

File size: 154 bytes
Line 
1function n = random_scene_normal()
2p = [];
3while p == []
4  p = [(2*rand)-1, (2*rand)-1, rand]';
5  if sum(p.*p) > 1 p = []; end
6end
7n=p./(sqrt(sum(p.*p)));
Note: See TracBrowser for help on using the repository browser.