小波分解图像超分辨率

时间:2021-08-25 12:05:00
【文件属性】:

文件名称:小波分解图像超分辨率

文件大小:3.68MB

文件格式:ZIP

更新时间:2021-08-25 12:05:00

matlab 小波

% Upsample. This is for regular upsampling comparison. img_upsampled = imresize(img_small, 2, 'bilinear'); [psnr_upsampled, ~] = psnr(img_upsampled, img); % DWT of the small image. [LL_small, LH_small, HL_small, HH_small] = dwt2(img_small, filter); dwt_upsampling_mode = 'bilinear'; LL_upsampledd = imresize(LL_small, 2, dwt_upsampling_mode); LH_upsampledd = imresize(LH_small, 2, dwt_upsampling_mode); HL_upsampledd = imresize(HL_small, 2, dwt_upsampling_mode); HH_upsampledd = imresize(HH_small, 2, dwt_upsampling_mode); LL_upsampledd = LL_orig; % Upsample each DWT component. dwt_upsampling_mode = 'bicubic'; LL_upsampled = imresize(LL_small, 2, dwt_upsampling_mode); LH_upsampled = imresize(LH_small, 2, dwt_upsampling_mode); HL_upsampled = imresize(HL_small, 2, dwt_upsampling_mode); HH_upsampled = imresize(HH_small, 2, dwt_upsampling_mode); LL_upsampled = LL_orig; %LH_upsampled = LH_orig; %HL_upsampled = HL_orig; %HH_upsampled = HH_orig; img_dwt_upsampledd = idwt2(LL_upsampledd, LH_upsampledd, HL_upsampledd, HH_upsampledd, filter); img_dwt_upsampledd = imresize(img_dwt_upsampledd, size(img)); % IDWT of the upsampled. img_dwt_upsampled = idwt2(LL_upsampled, LH_upsampled, HL_upsampled, HH_upsampled, filter); img_dwt_upsampled = imresize(img_dwt_upsampled, size(img)); [psnr_dwt_upsampled, ~] = psnr(img_dwt_upsampled, img);


【文件预览】:
wavelet-super-resolution-tests-master
----idwt2db97.m(345B)
----dwt2db97.m(772B)
----DSWTSR.m(2KB)
----WBIRE.m(1KB)
----run.m(3KB)
----test_images()
--------000002.dcm(514KB)
--------000005.dcm(514KB)
--------image_credits.txt(171B)
--------000007.dcm(514KB)
--------000011.dcm(514KB)
--------000008.dcm(514KB)
--------000001.dcm(514KB)
--------000006.dcm(514KB)
--------000010.dcm(514KB)
--------lena.jpg(48KB)
--------000013.dcm(514KB)
--------nyc_rooftops.jpg(148KB)
--------000009.dcm(514KB)
--------000014.dcm(514KB)
--------000012.dcm(514KB)
--------000003.dcm(514KB)
--------cell.jpg(182KB)
--------000004.dcm(514KB)
----wavecdf97.m(9KB)
----.gitignore(15B)
----testSRAlgorithms.m(1KB)
----addNoise.m(209B)
----getWaveletImage.m(467B)

网友评论