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

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

Added original make3d

File size: 477 bytes
Line 
1% Mdepthcol is column of JIM with depths which is spread by this
2% function to a submatrix with some zeros
3function submatrix = spread_depths_col(Mdepthcol,depthsIcol)
4
5m = size(depthsIcol,1);
6n = 1;
7
8known_depths      = find(depthsIcol ~= 0);
9
10if ~isempty(known_depths)
11  rows              = k2i(known_depths);
12  submatrix(rows,n) = Mdepthcol(rows); n=n+1;
13end
14
15for i=setdiff(1:m, known_depths)
16  rows              = k2i(i);
17  submatrix(rows,n) = Mdepthcol(rows); n=n+1;
18end
19
Note: See TracBrowser for help on using the repository browser.