source: trunk/src/toolbox_calib/is3D.m @ 1114

Last change on this file since 1114 was 926, checked in by sommeria, 9 years ago

geometry cqlib updated

File size: 209 bytes
Line 
1function test = is3D(X),
2
3
4Np = size(X,2);
5
6%% Check for planarity of the structure:
7
8X_mean = mean(X')';
9
10Y = X - (X_mean*ones(1,Np));
11
12YY = Y*Y';
13
14[U,S,V] = svd(YY);
15
16r = S(3,3)/S(2,2);
17
18test = (r > 1e-3);
19
Note: See TracBrowser for help on using the repository browser.