资源简介

通过shearlet变换去除图像噪声,非常实用。操作平台为matlab

资源截图

代码片段和文件信息

clc;clear;close all;
%% Setting parameters
spara =[3 3 3 3];
shear = shearing_filters_Myer([32 32 32 32]spara512);
scale = length(spara);
direction = 2^spara(1) + 2;
filter = ‘maxflat‘;
folder = sprintf(‘.\\%s\\‘‘ReviseHist‘);
%  total number of images.
Files = dir(strcat(folder‘*.*‘));
dataNum = length(Files) - 2;

Hist = [];
HistLog = [];
binnum = 100;
bins1 = -50:0.5:50;
bins2 = -10:0.1:10;

for num_file = 3:length(Files) % Traverse image folder
    str = Files(num_file).name;
    I = imread(strcat(folderstr));
    I = imresize(I[512 512]);
    I = rgb2gray(I);
    I = double(I);
    Csh = shear_trans(Ifiltershear);
    for s = 2:length(Csh)
        for w = 1:size(Csh{s}3)
            if s == length(Csh) && w == 1
                temp = Csh{s}(::w);
                hs = real(temp(:));
                hsabs = log2(abs(temp(:)));
                Histreal = hist(hsbins1);
                Histabs = hist(hsabsbins2);
                len = length(hs);
                Histreal = Histreal/len;
                Histabs = Histabs/len;
                Hist = [Hist Histreal‘];
                HistLog = [HistLog Histabs‘];
                figure;
                imshow(real(temp)‘Border‘‘tight‘);
            end
        end
    end
end
Plot_ReviseHist(bins1log(Hist+0.000001));
legend(‘ORI‘‘JPEG2K‘‘JPEG‘‘GWN‘‘GBLUR‘‘FF‘);
Plot_ReviseHist(bins2HistLog);
legend(‘ORI‘‘JPEG2K‘‘JPEG‘‘GWN‘‘GBLUR‘‘FF‘);




 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\
     目录           0  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\
     文件      368276  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_ImgGoodFeatures_LIVE_ImgGoodQuality_s4_d6.mat
     文件      374920  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_TrainFeatures_LIVE_FF_s4_d6.mat
     文件      375023  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_TrainFeatures_LIVE_GB_s4_d6.mat
     文件      372536  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_TrainFeatures_LIVE_GWN_s4_d6.mat
     文件      375808  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_TrainFeatures_LIVE_JPG2K_s4_d6.mat
     文件      374616  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Data\Nomax_TrainFeatures_LIVE_JPG_s4_d6.mat
     文件         309  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Plot_ReviseHist.m
     文件         179  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\README.md
     目录           0  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\1buildingsOriginal.bmp
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\2JPG2K.bmp
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\3JPG.bmp
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\4GWN.bmp
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\5GB.bmp
     文件     1179702  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\ReviseHist\6FF.bmp
     目录           0  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\
     文件      263222  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\Lena.bmp
     文件       91814  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\Lena_color.jpg
     文件        2782  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\atrousc.c
     文件        7680  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\atrousc.mexw64
     文件        1325  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\atrousdec.m
     文件       19405  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\atrousfilters.m
     文件        1002  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\atrousrec.m
     文件         863  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\com_norm.m
     文件        2426  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\demo_Lena_shearlets.m
     文件        2414  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\gen_x_y_cordinates.m
     文件         199  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\ggd.m
     文件         187  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\ggd_error.m
     文件         126  2016-05-04 02:47  Shearlet-Transform-and-DNN-master\Shearlet-Transform\ggd_fit.m
............此处省略12个文件信息

评论

共有 条评论