Scilab Wavelet Toolbox Function
Last update : Feburary 2006
detcoef2 - detail coefficient extraction for two
dimensional multiple stride fast discrete wavelet decompostion
Calling Sequence
-
dc=detcoef2(type,c,s,level) or [cH,cV,cD]=detcoef2('all',c,s,level)
Parameters
-
type
: Detail Coefficient Type
- 'h': Horizontal Detail
- 'v': Vertical Detail
- 'd': Diagonal Detail
-
c
: Coefficient Bunch Vector
-
s
: Coefficient Size Matrix
-
level
: Decompostion Level of the coefficient you want
-
dc
: Detail Coefficient
-
cH
: Horizontal Detail Coefficient
-
cV
: Vertical Detail Coefficient
-
cD
: Diagonal Detail Coefficient
Description
This function extracts detail coefficents from
coefficent bunch vector. Since all the detail coefficients are
stored in the coefficient bunch vector, no inverse transform efforts
are needed. Hence, the wavelet name and extension method need not
to be presented.
Examples
-->img=rand(64,64);
-->[c,s]=wavedec2(img,3,'db2','sp0');
-->[cH1,cV1,cD1]=detcoef2('all',c,s,1);
-->size(cH1)
ans =
! 33. 33. !
-->cV2=detcoef2('v',c,s,2);
-->size(cV2)
ans =
! 18. 18. !
See Also
appcoef
,
detcoef
,
wrcoef
,
appcoef2
,
wrcoef2