source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamSelfCal/MartinecPajdla/utils/normalize_cut.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 314 bytes
Line 
1%
2%       Function Mnorm=normalize_cut(M,I)
3%
4% normalizes homogenous coordinates and cuts the last coordinate
5% (which then equals to 1).
6
7function Mnorm=normalize_cut(M,I)
8
9m=size(M,1)/3;
10
11if nargin < 2, Mnorm=normalize(M);
12else           Mnorm=normalize(M,I); end
13
14Mnorm=Mnorm(union((1:m)*3-2,(1:m)*3-1),:);
15
16return
Note: See TracBrowser for help on using the repository browser.