source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/RansacM/nsamples.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 386 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | % nsamples calculate the number of samples yet needed |
2 | % | |
3 | % N = nsamples(no_i,ptNum,s,conf) | |
4 | % no_i ... current number of inliers | |
5 | % ptNum ... total number of points | |
6 | % s ... sample size | |
7 | % conf ... confidence value | |
8 | % | |
9 | % $Id: nsamples.m,v 1.1 2005/05/23 16:15:59 svoboda Exp $ | |
10 | ||
11 | function N = nsamples(no_i,ptNum,s,conf) | |
12 | ||
13 | outl = 1-no_i/ptNum; | |
14 | N = log(1-conf) / log(1-(1-outl)^s+eps); | |
15 | ||
16 | return; |
Note: See TracBrowser
for help on using the repository browser.