Home > Util > build_pyr.m

build_pyr

PURPOSE ^

BUILD_PYR constructs a particular pyramid (Haar) on matrix im.

SYNOPSIS ^

function [pyr,pind] = build_pyr(im, ht)

DESCRIPTION ^

BUILD_PYR constructs a particular pyramid (Haar) on matrix im.
 [pyr,pind]=build_pyr(im, ht)
 ht (optional) specifies the number of pyramid levels to build. 
 Default is 1+maxPyrHt(size(IM),size(FILT)). 
 You can also specify 'auto' to use this value.

 PYR is a vector containing the N pyramid subbands, ordered from fine
 to coarse.  INDICES is an Nx2 matrix containing the sizes of
 each subband.  This is compatible with the MatLab Wavelet toolbox.

 Test:
 x=shepp(256,256,1,1);ns=3;[pyr,pind]=build_pyr(x,ns);
 figure(1),imagesc(x),figure(2),Show_Pyr(pyr,pind,0);Show_Pyr(pyr,pind,1);

 Author: Ali Mohammad-Djafari
 Date: Nov. 4, 2002

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Feb-2004 16:43:21 by m2html © 2003