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 , 14 years ago | |
---|---|
File size: 314 bytes |
Rev | Line | |
---|---|---|
[37] | 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 | ||
7 | function Mnorm=normalize_cut(M,I) | |
8 | ||
9 | m=size(M,1)/3; | |
10 | ||
11 | if nargin < 2, Mnorm=normalize(M); | |
12 | else Mnorm=normalize(M,I); end | |
13 | ||
14 | Mnorm=Mnorm(union((1:m)*3-2,(1:m)*3-1),:); | |
15 | ||
16 | return |
Note: See TracBrowser
for help on using the repository browser.