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

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

Added original make3d

File size: 222 bytes
Line 
1function [M1, M2] = split_matrix(M)
2% Splits a matrix so the odd and even rows go to two different matrices.
3%   This is useful for structure-from-motion.
4numrows = size(M,1);
5M1 = M(1:2:numrows,:);
6M2 = M(2:2:numrows,:);
Note: See TracBrowser for help on using the repository browser.