y = detcoef2(o,c,s,n)
extracts from the wavelet decomposition structure [c,s] the
detail coefficients of orientation o at level
n. For more information on c and
s, see wavedec2.
[h,v,d] = detcoef2('all',c,s,n)
returns the horizontal h, vertical v, and
diagonal d detail coefficients at level
n.
detcoef2('a',c,s,n) is equivalent to
detcoef2('all',c,s,n).
Obtain the wavelet decomposition of the image down to level two using the Haar wavelet.
[c,s] = wavedec2(X,2,'haar');
size(X)
ans = 1×2
256 256
size(c)
ans = 1×2
1 65536
s
s = 4×2
64 64
64 64
128 128
256 256
Extract the detail coefficients at level 2 in each orientation from the wavelet decomposition structure [c,s]. Display the diagonal detail coefficients.
Wavelet decomposition vector, specified as a real-valued vector. The
vector c contains the approximation and detail
coefficients organized by level. The bookkeeping matrix
s is used to parse c. See
wavedec2.
Data Types: double
Bookkeeping matrix, specified as an integer-valued matrix. The matrix
s contains the dimensions of the wavelet
coefficients by level and is used to parse the wavelet decomposition vector
c. See wavedec2.
Data Types: double
Detail level to extract from the wavelet decomposition, specified as an
integer. The integer n must be in the interval
[1,size(s,1)-2].
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.