Two Dimension Detail Coefficent Extraction
D=detcoef2(type,c,s,N) [H,V,D]=detcoef2('all',c,s,N)
reconstructed horizontal detail coefficient
reconstructed vertical detail coefficient
reconstructed diagonal detail coefficient
coefficent array
size array
restruction level
'h', 'v', 'd', 'c' or 'all'
detcoef2 is for extraction of detail coeffient at different level after a multiple level decompostion. Extension mode is stored as a global variable and could be changed with dwtmode.
x=rand(100,100); [C,S]=wavedec2(x,3,'db2'); H2=detcoef2('h',C,S,2); | ![]() | ![]() |