wavework.m in imageprocessing.rar


Gonzales matlab version of the digital image processing books. Detailed and ther...Original Link
    Sponsored links

			
function [varargout] = wavework(opcode, type, c, s, n, x)
%WAVEWORK is used to edit wavelet decomposition structures.
%   [VARARGOUT] = WAVEWORK(OPCODE, TYPE, C, S, N, X) gets the
%   coefficients specified by TYPE and N for access or modification
%   based on OPCODE.
%
%   INPUTS:
%     OPCODE      Operation to perform
%     --------------------------------------------------------------
%     'copy'      [varargout] = Y = requested (via TYPE and N)
%                 coefficient matrix 
%     'cut'       [varargout] = [NC, Y] = New decomposition vector
%                 (with requested coefficient matrix zeroed) AND 
%                 requested coefficient matrix 
%     'paste'     [varargout] = [NC] = new decomposition vector with
%                 coefficient matrix replaced by X
%
%     TYPE        Coefficient category
%     --------------------------------------------
%     'a'         Approximation coefficients
%     'h'         Horizontal details
%     'v'         Vertical details
%     'd'         Diagonal details
%
%     [C, S] is a wavelet toolbox decomposition structure.
%     N is a decomposition level (Ignored if TYPE = 'a').
%     X is a two-dimensional coefficient matrix for pasting.
%
%   See also WAVECUT, WAVECOPY, and WAVEPASTE.

%   Copyright 2002-2004 R. C. Gonzalez, R. E. Woods, & S. L. Eddins
%   Digital Image Processing Using MATLAB, Prentice-Hall, 2004
%   $Revision: 1.6 $  $Date: 2003/11/21 15:00:18 $

error(nargchk(4, 6, nargin));

if (ndims(c) ~= 2) | (size(c, 1) ~= 1)
   error('C must be a row vector.');   
end
  
if (ndims(s) ~= 2) | ~isreal(s) | ~isnumeric(s) | (size(s, 2) ~= 2)
   error('S must be a real, numeric two-column array.');   
end
  
elements = prod(s, 2			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 0_Read_Me_First.txt5.00 kB16-12-04 13:36
 adpmedian.m1.54 kB16-12-04 13:36
 average.m651.00 B16-12-04 13:36
 bayesgauss.m2.96 kB16-12-04 13:36
 bound2eight.m2.99 kB16-12-04 13:36
 bound2four.m2.42 kB16-12-04 13:36
 bound2im.m2.17 kB16-12-04 13:36
 boundaries.m5.64 kB16-12-04 13:36
 bsubsamp.m3.87 kB16-12-04 13:36
 changeclass.m592.00 B16-12-04 13:36
 colorgrad.m2.30 kB16-12-04 13:36
 colorseg.m2.37 kB16-12-04 13:36
 compare.m1.15 kB16-12-04 13:36
 connectpoly.m1.02 kB16-12-04 13:36
 Contents.m5.98 kB16-12-04 13:36
 conwaylaws.m799.00 B16-12-04 13:36
 covmatrix.m977.00 B16-12-04 13:36
 dftcorr.m687.00 B16-12-04 13:36
 dftfilt.m882.00 B16-12-04 13:36
 dftuv.m736.00 B16-12-04 13:36
 diameter.m6.47 kB16-12-04 13:36
 endpoints.m874.00 B16-12-04 13:36
 entropy.m1.00 kB16-12-04 13:36
 fchcode.m8.55 kB16-12-04 13:36
 frdescp.m1.42 kB16-12-04 13:36
 fwtcompare.m992.00 B16-12-04 13:36
 gmean.m447.00 B16-12-04 13:36
 gscale.m2.04 kB16-12-04 13:36
 histroi.m920.00 B16-12-04 13:36
 hough.m2.64 kB16-12-04 13:36
 houghlines.m2.82 kB16-12-04 13:36
 houghpeaks.m2.65 kB16-12-04 13:36
 houghpixels.m1.02 kB16-12-04 13:36
 hpfilter.m1.23 kB16-12-04 13:36
 hsi2rgb.m1.94 kB16-12-04 13:36
 huff2mat.m2.46 kB16-12-04 13:36
 huffman.m2.82 kB16-12-04 13:36
 ice.fig45.71 kB16-12-04 13:36
 ice.m26.30 kB16-12-04 13:36
 ice_stand_alone.m46.55 kB16-12-04 13:36
 DIPUM_toolbox_m-file_v1[1].1.3_part1.rar60.11 kB13-04-09 20:38
 ifrdescp.m1.38 kB16-12-04 13:36
 ifwtcompare.m1.12 kB16-12-04 13:36
 im2jpeg.m2.90 kB16-12-04 13:36
 im2jpeg2k.m3.97 kB16-12-04 13:36
 imnoise2.m4.20 kB16-12-04 13:36
 imnoise3.m2.12 kB16-12-04 13:36
 improd.m791.00 B16-12-04 13:36
 imratio.m1.30 kB16-12-04 13:36
 imstack2vectors.m1.83 kB16-12-04 13:36
 intline.m1.20 kB16-12-04 13:36
 intrans.m3.25 kB16-12-04 13:36
 invmoments.m3.24 kB16-12-04 13:36
 jpeg2im.m2.41 kB16-12-04 13:36
 jpeg2k2im.m1.90 kB16-12-04 13:36
 lpc2mat.m1.42 kB16-12-04 13:36
 lpfilter.m1.44 kB16-12-04 13:36
 mahalanobis.m1.97 kB16-12-04 13:36
 manualhist.m1.75 kB16-12-04 13:36
 mat2huff.m2.75 kB16-12-04 13:36
 mat2lpc.m1.28 kB16-12-04 13:36
 minperpoly.m7.15 kB16-12-04 13:36
 paddedsize.m1.29 kB16-12-04 13:36
 pixeldup.m950.00 B16-12-04 13:36
 polyangles.m6.14 kB16-12-04 13:36
 princomp.m2.88 kB16-12-04 13:36
 quantize.m1.33 kB16-12-04 13:36
 randvertex.m1.15 kB16-12-04 13:36
 Readme.m5.30 kB16-12-04 13:36
 regiongrow.m1.66 kB16-12-04 13:36
 rgb2hsi.m1.46 kB16-12-04 13:36
 rgbcube.m1.98 kB16-12-04 13:36
 signature.m4.45 kB16-12-04 13:36
 specxture.m2.57 kB16-12-04 13:36
 spfilt.m3.78 kB16-12-04 13:36
 splitmerge.m4.13 kB16-12-04 13:36
 statmoments.m1.72 kB16-12-04 13:36
 statxture.m1.55 kB16-12-04 13:36
 strsimilarity.m1.78 kB16-12-04 13:36
 subim.m713.00 B16-12-04 13:36
 twodsin.m1.04 kB16-12-04 13:36
 twomodegauss.m1.16 kB16-12-04 13:36
 unravel.dll7.00 kB16-12-04 13:36
 unravel.m967.00 B16-12-04 13:36
 unravel.mexaxp24.00 kB16-12-04 13:36
 unravel.mexglx18.97 kB16-12-04 13:36
 unravel.mexhpux12.00 kB16-12-04 13:36
 unravel.mexmac8.68 kB16-12-04 13:36
 unravel.mexrs62.71 kB16-12-04 13:36
 unravel.mexsg24.44 kB16-12-04 13:36
 unravel.mexsol8.54 kB16-12-04 13:36
 vistformfwd.m1.66 kB16-12-04 13:36
 wave2gray.m4.67 kB16-12-04 13:36
 waveback.m4.52 kB16-12-04 13:36
 wavecopy.m940.00 B16-12-04 13:36
 wavecut.m1.06 kB16-12-04 13:36
 wavefast.m4.14 kB16-12-04 13:36
 wavefilter.m4.77 kB16-12-04 13:36
 wavepaste.m1.04 kB16-12-04 13:36
 wavework.m3.45 kB16-12-04 13:36
 wavezero.m696.00 B16-12-04 13:36
 x2majoraxis.m3.59 kB16-12-04 13:36
 DIPUM_toolbox_m-file_v1[1].1.3_part2.rar85.71 kB13-04-09 20:39
 <DIPUM_toolbox_m-file_v1[1].1.3_part1>0.00 B02-07-09 16:26
 <DIPUM_toolbox_m-file_v1[1].1.3_part2>0.00 B02-07-09 16:26
 <冈萨雷斯(matlab)>0.00 B02-07-09 16:26
...

Related Items

    Sponsored links