source:
trunk/src/toolbox_calib/is3D.m
@
1016
Last change on this file since 1016 was 926, checked in by , 9 years ago | |
---|---|
File size: 209 bytes |
Line | |
---|---|
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.