PRO WDOWTC ;+ ; NAME: ; WDOWTC ; ; PURPOSE: ; This procedure sets up runs a simple event loop for ; the Wavelet Transform Compression action. It is part ; of the Wavelet Workbench functions. ; ; CATEGORY: ; Wavelets. ; ; CALLING SEQUENCE: ; WDOWTC ; ; INPUTS: (via COMMON) ; sig: 1-d signal array ; QMF: Quadrature Mirror Filter ; st: signal title ; ; OUTPUTS: ; This procedure runs the wavelet data input as well as the actions ; performed on the data. ; ; ; EXAMPLE: ; IDL> ;Truncate sig array appropriately and get QMF ; IDL> WINTWAVE, sig, WaveType, ParVal, QMF, LD ; IDL> ;Call Wavelet Transform Compression ; IDL> WDOWTC ; ; COMMON BLOCKS: ; TEXT_ANNOUNCE: The block for passing the widget that present ; messages as well as other important wavelet parameters such ; as the data array (sig), the data array length(len), a string ; describing the data (st) and the current chosen quadrature mirror ; filter (QMF). ; COMMON WTC_common, The block for the two sliders (FSLID3, FSLID4) ; the four buttons (BUTTON4, BUTTON5, , BUTTON8, BUTTON9) and ; array of wavelet coeffs (wc), sorted array of wavelet coeffs (wcwmnsort), ; threshold value (thr), the max number of coeffs (n), the current ; value of the sliders (threshslider, numslider), and the coarsest ; level for the wavelet transform (Coarse) ; ; ; MODIFICATION HISTORY: ; Written by: Amara Graps, August/September 1995. ;- COMMON WTC_common, FSLID3, BUTTON4, BUTTON5, FSLID4, BUTTON8, BUTTON9, $ BUTTON18, wc, wcwmnsort, thr, n, threshslider, numslider, orig_wc COMMON WWB_COMMON, $ TEXT_ANNOUNCE, wd, sig, len, st, noise_type, noise_lev, $ QMF, LD, shrinkage_type, WaveType, ParVal TT = WSIGTYPE(sig, len, error) CASE error OF 1: BEGIN ;Valid array or matrix CASE TT OF 'I': BEGIN ;Image WTC2 END ;image 'S': BEGIN ;Signal WTC END ;signal/data array ENDCASE ;TT END ;valid array or matrix ELSE: PRINT, 'Not valid data/signal array or matrix!' ENDCASE ;error ; Algorithm Source: WaveLab Version 0.600 ; WaveLab WWW site: http://playfair.stanford.edu/ ; WaveLab Questions? e-mail wavelab@playfair.stanford.edu END ;of WDOWTC