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

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

Added original make3d

File size: 324 bytes
Line 
1function [v] = block_invert(A,r,w)
2
3cntr1 = 1;  % assumes no leading rows or cols of zeros in A
4            % will need to fix this+++
5cntr2 = 1;
6while (size(A) > 0)
7  [block, A] = get_block(A,r);
8  v(cntr1:r+cntr1-1) = block\w(cntr2:cntr2 + size(block,1) - 1);
9  cntr1 = cntr1+r;
10  cntr2 = cntr2+size(block,1);
11end;
12v = v';
Note: See TracBrowser for help on using the repository browser.