can anyone help in getting idwt2 image

2 次查看(过去 30 天)
i have attached input image after applying my algorithm with dwt2 i have got the a1,a2,a3 now ,on which i have to apply idwt2 using haar wavelet ,,am not getting the input image back in decoding stage . can anyone help
a1 = izigzag(b1, 512, 512); a2 = izigzag(b2, 512, 512); a3 = izigzag(b3, 512, 512);
a = cat(3,a1,a2,a3);
% Step 9 : Inverse Quantization
%%Inverse Quantization
ReconstructedImage=a*quantizedvalue;
% disp('recon Image')
% size(ReconstructedImage)
sX = size(a);
cA1 = ReconstructedImage(1:(sX(1)/2), 1:(sX(1)/2));
cH1 = ReconstructedImage(1:(sX(1)/2), (sX(1)/2 + 1):sX(1));
cV1 = ReconstructedImage((sX(1)/2 + 1):sX(1), 1:(sX(1)/2));
cD1 = ReconstructedImage((sX(1)/2 + 1):sX(1), (sX(1)/2 + 1):sX(1));
ReconstructedImage = idwt2(cA1,cH1,cV1,cD1,'haar');

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Discrete Multiresolution Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by