Mercurial > hg > aimc
diff trunk/matlab/bmm/carfac/SAI_Run.m @ 700:597913e855fd
Factor out SAI_Run_Segment, and output test_data for comparison with C++ code.
author | ronw@google.com |
---|---|
date | Thu, 27 Jun 2013 22:28:42 +0000 |
parents | c64fdcc4f250 |
children |
line wrap: on
line diff
--- a/trunk/matlab/bmm/carfac/SAI_Run.m Thu Jun 27 22:28:34 2013 +0000 +++ b/trunk/matlab/bmm/carfac/SAI_Run.m Thu Jun 27 22:28:42 2013 +0000 @@ -55,15 +55,7 @@ % NOTE: This might not be necessary. seg_naps = max(0, seg_naps); - if seg_num == n_segs % pad out the last result - seg_naps = [seg_naps; zeros(seglen - size(seg_naps,1), size(seg_naps, 2))]; - end - - % Shift new data into the buffer. - n_shift = size(seg_naps, 1); - sai_struct.nap_buffer = [sai_struct.nap_buffer((1 + n_shift):end,:); seg_naps]; - - sai_struct = SAI_StabilizeLayer(sai_struct); + sai_struct = SAI_Run_Segment(sai_struct, seg_naps); cmap = 1 - gray; % jet figure(10)