% % Written by: % -- % John L. Weatherwax 2005-08-04 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % % Epage % %----- I = [ 0, 1, 2, 2, 3; 1, 2, 0, 2, 0; 3, 0, 3, 2, 1; 1, 2, 2, 2, 3; 0, 0, 1, 1, 2 ]; % compute the run-length matrices for each direction: Q = Q_RL(I,0) Q = Q_RL(I,45) Q = Q_RL(I,90) Q = Q_RL(I,135) SRE( I ) LRE( I )