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 , 14 years ago | |
---|---|
File size: 337 bytes |
Line | |
---|---|
1 | function 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. |
5 | if 2*el <= ml |
6 | l = prob_round(2*el*rand); |
7 | else |
8 | l = prob_round((2*el-ml)+2*(ml-el)*rand); |
9 | end |
Note: See TracBrowser
for help on using the repository browser.