spyrHt.m 305 B

12345678910111213141516
  1. % [HEIGHT] = spyrHt(INDICES)
  2. %
  3. % Compute height of steerable pyramid with given index matrix.
  4. % Eero Simoncelli, 6/96.
  5. function [ht] = spyrHt(pind)
  6. nbands = spyrNumBands(pind);
  7. % Don't count lowpass, or highpass residual bands
  8. if (size(pind,1) > 2)
  9. ht = (size(pind,1)-2)/nbands;
  10. else
  11. ht = 0;
  12. end