Performing 2D Wavelet decomposition

I am performing 2D wavelet decomposition of a color image using this code. Is the ok or i need to perform 1D decomposition too ?
X= imread('hi.jpg');
[c,s]=wavedec2(X,2,'haar');
[H2,V2,D2] = detcoef2('all',c,s,2);
A2 = appcoef2(c,s,'haar',2);
figure,imshow(H2);figure,imshow(V2);figure,imshow(D2);

Answers (0)

Asked:

on 11 Jul 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!