comparison matlab/bmm/carfac/SAI_RunLayered.m @ 633:a6e67f042b93

Some cleanups of internal SAI computation to improve readability.
author ronw@google.com
date Fri, 24 May 2013 17:04:33 +0000
parents b3118c9ed67f
children 68bc9e908578
comparison
equal deleted inserted replaced
632:c692afd86cc9 633:a6e67f042b93
16 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 % See the License for the specific language governing permissions and 17 % See the License for the specific language governing permissions and
18 % limitations under the License. 18 % limitations under the License.
19 19
20 function [frame_rate, num_frames] = SAI_RunLayered(CF, input_waves) 20 function [frame_rate, num_frames] = SAI_RunLayered(CF, input_waves)
21 % function [CF, SAI_movie] = CARFAC_Run_Layered_SAI(CF, input_waves) 21 % function [CF, SAI_movie] = CARFAC_RunLayered(CF, input_waves)
22 % This function runs the CARFAC and generates an SAI movie, dumped as PNG 22 % This function runs the CARFAC and generates an SAI movie, dumped as PNG
23 % files for now. 23 % files for now.
24 24
25 % Layer 1 is not decimated from the 22050 rate; subsequent layers have 25 % Layer 1 is not decimated from the 22050 rate; subsequent layers have
26 % smoothing and 2X decimation each. All layers get composited togehter 26 % smoothing and 2X decimation each. All layers get composited together
27 % into movie frames. 27 % into movie frames.
28 28
29 n_ch = CF.n_ch; 29 n_ch = CF.n_ch;
30 [n_samp, n_ears] = size(input_waves); 30 [n_samp, n_ears] = size(input_waves);
31 if n_ears ~= CF.n_ears 31 if n_ears ~= CF.n_ears