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

Last change on this file since 785 was 725, checked in by sommeria, 11 years ago

toolbox_calib added to svn

File size: 228 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.