Search code examples
matlabimage-processingwavelet

reconstruct the decomposed image


I am applying Wavelet decomposition of 4 Level but enter image description herewhile reconstructing the same RGB image its coming in 3 parts. code is as below

fullRecon = cAA{nLevel};
for iLevel = nLevel:-1:1,
  fullRecon = idwt2(fullRecon,cHH{iLevel},cVV{iLevel},cDD{iLevel},'db1');
end
figure, imshow(uint8(fullRecon)),title('Full Recont Image');

The forum is not allowing me to upload any image so please follow the below link

http://in.mathworks.com/matlabcentral/answers/195203-reconstruct-the-decomposed-image


Solution

  • Try

    fullRecon = reshape( fullRecon, size(fullRecon,1), [], 3 );