source:
trunk/src/toolbox_calib/is3D.m
@
731
Last change on this file since 731 was 725, checked in by , 11 years ago | |
---|---|
File size: 228 bytes |
Rev | Line | |
---|---|---|
[725] | 1 | function test = is3D(X), |
2 | ||
3 | ||
4 | Np = size(X,2); | |
5 | ||
6 | %% Check for planarity of the structure: | |
7 | ||
8 | X_mean = mean(X')'; | |
9 | ||
10 | Y = X - (X_mean*ones(1,Np)); | |
11 | ||
12 | YY = Y*Y'; | |
13 | ||
14 | [U,S,V] = svd(YY); | |
15 | ||
16 | r = S(3,3)/S(2,2); | |
17 | ||
18 | test = (r > 1e-3); | |
19 |
Note: See TracBrowser
for help on using the repository browser.