source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/fp_submatrix.m @ 37

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

Added original make3d

File size: 384 bytes
Line 
1function [submat, subcols] = fp_submatrix(pair,M,INC)
2% pair is a 2x1 matrix listing the frames used.  Return the submatrix containing
3% the four rows from these frames, and all fully occupied columns, along with
4% the indices of these columns.
5subrows = [2*pair(1,1)-1, 2*pair(1,1), 2*pair(2,1)-1, 2*pair(2,1)];
6subcols = find(sum(INC(subrows,:)) == 4);
7submat = M(subrows,subcols);
Note: See TracBrowser for help on using the repository browser.