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

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

Added original make3d

File size: 337 bytes
Line 
1function l = occlusion_length(el,ml)
2% generate a random length of occlusion.  el should be the expected
3% length, ml should be the max length.  I'm going to make this very
4% easy, by picking a uniform distribution of the max possible size.
5if 2*el <= ml
6  l = prob_round(2*el*rand);
7else
8  l = prob_round((2*el-ml)+2*(ml-el)*rand);
9end
Note: See TracBrowser for help on using the repository browser.