function WDYAD2IX, j,k ;+ ; NAME: ; WDYAD2IX ; ; PURPOSE: ; This function converts wavelet indexing into linear indexing.. ; ; CATEGORY: ; Wavelets ; ; CALLING SEQUENCE: ; ix = WDYAD2IX(j,k) ; ; INPUTS: ; j: Resolution Level. j>= 0. ; k: Spatial Position. 0 <= k < 2^j. ; ; OUTPUTS: ; ix = index in linear 1-d wavelet transform array where ; the (j,k) wavelet coefft. is stored ; ; EXAMPLE: ; ; MODIFICATION HISTORY: ; Written by: Amara Graps October, 1994 ;Translated from MatLab Wavelab routine: dyad2ix.m ;- ix = 2^j + k + 1 ; ; Algorithm Source: WaveLab Version 0.600 ; WaveLab WWW site: http://playfair.stanford.edu/ ; WaveLab Questions? e-mail wavelab@playfair.stanford.edu ; RETURN, ix End ;***************************************************