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 , 14 years ago | |
---|---|
File size: 333 bytes |
Line | |
---|---|
1 | function 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 | |
6 | INC; |
7 | %ignore this var |
8 | |
9 | trans = -(sum(M'))/size(M,2); |
10 | transmat = repeat(trans',size(M,2)); |
11 | R = M + transmat; |
Note: See TracBrowser
for help on using the repository browser.