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

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

Added original make3d

File size: 333 bytes
Line 
1function R = remove_translations(M, INC)
2% I used to do this incorrectly, thinking I could trivially remove translation
3% with missing data.  This function now ignores INC, and only works for cases
4% with no missing data.
5
6INC;
7%ignore this var
8
9trans = -(sum(M'))/size(M,2);
10transmat = repeat(trans',size(M,2));
11R = M + transmat;
Note: See TracBrowser for help on using the repository browser.