MATLAB: IDWT image processing i am facing a problem that after doing dwt2 on image say X if i do idwt2 with same cA cH cV cD output doesnt come same will u plz help Best Answer What do you mean by not the same?load woman;dwtmode('per');[A,H,V,D] = dwt2(X,'db2');Xrec = idwt2(A,H,V,D,'db2');Y = Xrec-X;max(Y(:))This is on the order of 10^(-10) for the maximum difference between the two images. That is the same.Are you changing the coefficients before you perform the inverse DWT? Related SolutionsMATLAB: IDWT Well, you could docd1(252) = NaNand then the sizes would agree. The final element of the result would then be NaN as well, which is probably a good reminder that it is not well defined to add two vectors of different sizes. MATLAB: DWT Hi Kush, that is because the default extension mode for the DWT is not periodic. First, set the extension mode to 'per'dwtmode('per');Then use dwt2()load woman;dwtmode('per');[A,H,V,D] = dwt2(X,'db2'); Related QuestionUndecimated wavelet transformProblem in using IDWT2
Best Answer