I want apply wavelet with haar filter on an image and then reconstruction the image with approximation coefficients. I run this code in matlab:
f = imread('pic.tif');
sX = size(f);
[cA,cH,cV,cD] = dwt2(f,'haar');
x = idwt2(cA,[],[],[],'haar',sX);
imshow(x);
This is the pic.tif:
but the output picture is a white screen,
why the reason?!