swt based image resolution enhancement
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete Multiresolution Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!