wpyrHt.m 270 B

123456789101112131415
  1. % [HEIGHT] = wpyrHt(INDICES)
  2. %
  3. % Compute height of separable QMF/wavelet pyramid with given index matrix.
  4. % Eero Simoncelli, 6/96.
  5. function [ht] = wpyrHt(pind)
  6. if ((pind(1,1) == 1) | (pind(1,2) ==1))
  7. nbands = 1;
  8. else
  9. nbands = 3;
  10. end
  11. ht = (size(pind,1)-1)/nbands;