www.gusucode.com > 冈萨雷斯数字图像处理matlab版源码V1.1 > 冈萨雷斯数字图像处理matlab版源码V1.1.3/code/新建文件夹/wavezero.m
function [nc, g8] = wavezero(c, s, l, wname) %WAVEZERO Zeroes wavelet transform detail coefficients. % [NC, G8] = WAVEZERO(C, S, L, WNAME) zeroes the level L detail % coefficients in wavelet decomposition structure [C, S] and % computes the resulting inverse transform with respect to WNAME % wavelets. % Copyright 2002-2004 R. C. Gonzalez, R. E. Woods, & S. L. Eddins % Digital Image Processing Using MATLAB, Prentice-Hall, 2004 % $Revision: 1.4 $ $Date: 2003/10/13 01:31:35 $ [nc, foo] = wavecut('h', c, s, l); [nc, foo] = wavecut('v', nc, s, l); [nc, foo] = wavecut('d', nc, s, l); i = waveback(nc, s, wname); g8 = im2uint8(mat2gray(i)); figure; imshow(g8);