swt based image resolution enhancement
17 views (last 30 days)
Show older comments
i am performing following operation on lena image but result are noisy one pls suggest.
GRAY =imread(file); %% SWT Wavelet Transform starts for Original image dwtmode('per'); [Lo_D,Hi_D,Lo_R,Hi_R] = wfilters('db9'); [LLS,LHS,HLS,HHS]=swt2(GRAY,1,Lo_D,Hi_D);
%%DWT Wavwlet transform
[LLD,LHD,HLD,HHD]=dwt2(GRAY,Lo_D,Hi_D); % interpolation of high frequencies by 2 LHDI = imresize(LHD,2,'bicubic'); HLDI = imresize(HLD,2,'bicubic'); HHDI = imresize(HHD,2,'bicubic');
ELH = imadd(LHDI,LHS); EHL = imadd(HLDI,HLS); EHH = imadd(HHDI,HHS); scale=4; LLI2 = imresize(GRAY,scale/2,'bicubic'); LHI2 = imresize(ELH,scale/2,'bicubic'); HLI2 = imresize(EHL,scale/2,'bicubic'); HHI2 = imresize(EHH,scale/2,'bicubic');
%%IDWT Wavwlet transform
EnhancedImg = idwt2(LLI2,LHI2,HLI2,HHI2,'db9'); figure; imshow(EnhancedImg,[]); title('Enhanced Image');
2 Comments
Answers (0)
See Also
Categories
Find more on Discrete Multiresolution Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!