Diff of /frames/frame.m [7c7a96] .. [3deeb5]  Maximize  Restore

Switch to unified view

a/frames/frame.m b/frames/frame.m
...
...
266
    F.native2coef=@(coef) cell2mat(coef(:));
266
    F.native2coef=@(coef) cell2mat(coef(:));
267
    F.coef2native=@(coef,s) vect2cell(coef,round(s(1)/F.red*F.a(:,2)./F.a(:,1)));
267
    F.coef2native=@(coef,s) vect2cell(coef,round(s(1)/F.red*F.a(:,2)./F.a(:,1)));
268
    F.frana=@(insig) F.native2coef(comp_filterbank(insig,F.g,F.a));
268
    F.frana=@(insig) F.native2coef(comp_filterbank(insig,F.g,F.a));
269
    F.frsyn=@(insig) comp_ifilterbank(F.coef2native(insig,size(insig)),...
269
    F.frsyn=@(insig) comp_ifilterbank(F.coef2native(insig,size(insig)),...
270
                                      F.g,F.a,round(size(insig,1)/F.red));
270
                                      F.g,F.a,round(size(insig,1)/F.red));
271
    F.destructor=@() clear('comp_filterbank','comp_ifilterbank');
271
    
272
    
272
  case 'filterbankreal'
273
  case 'filterbankreal'
273
    F.red=2*sum(F.a(:,2)./F.a(:,1));
274
    F.red=2*sum(F.a(:,2)./F.a(:,1));
274
    F.length=@(Ls) filterbanklength(Ls,F.a);
275
    F.length=@(Ls) filterbanklength(Ls,F.a);
275
    F.lengthcoef=@(Ncoef) 2*Ncoef/(F.red);
276
    F.lengthcoef=@(Ncoef) 2*Ncoef/(F.red);
276
    F.native2coef=@(coef) cell2mat(coef(:));
277
    F.native2coef=@(coef) cell2mat(coef(:));
277
    F.coef2native=@(coef,s) vect2cell(coef,round(2*s(1)/F.red*F.a(:,2)./F.a(:,1)));
278
    F.coef2native=@(coef,s) vect2cell(coef,round(2*s(1)/F.red*F.a(:,2)./F.a(:,1)));
278
    F.frana=@(insig) F.native2coef(comp_filterbank(insig,F.g,F.a));
279
    F.frana=@(insig) F.native2coef(comp_filterbank(insig,F.g,F.a));
279
    F.frsyn=@(insig) 2*real(comp_ifilterbank(F.coef2native(insig,size(insig)),F.g,F.a,...
280
    F.frsyn=@(insig) 2*real(comp_ifilterbank(F.coef2native(insig,size(insig)),F.g,F.a,...
280
                                             2*round(size(insig,1)/F.red)));
281
                                             2*round(size(insig,1)/F.red)));
282
    F.destructor=@() clear('comp_filterbank','comp_ifilterbank');
281
283
282
    
284
    
283
  case 'ufilterbank'
285
  case 'ufilterbank'
284
    F.red=sum(F.a(:,2)./F.a(:,1));
286
    F.red=sum(F.a(:,2)./F.a(:,1));
285
    F.length=@(Ls) filterbanklength(Ls,F.a);
287
    F.length=@(Ls) filterbanklength(Ls,F.a);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks