91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

該程序是一個matlab GUI程序,打開.m文件可以運行GUI后,按照GUI界面降低分辨率,添加庫便可以識別,方便大家學習,交流

資源截圖

代碼片段和文件信息

function?[s?ground_truth]?=?create_images(imdeltaphiscalenrsnr)
%?CREATE_IMAGES?-?通過位移和旋轉生成低分辨率圖像
%????[s?ground_truth]?=?create_images(imdeltaphiscalenrsnr)
%????生成低分辨率圖像NR,從高分辨率圖像IM
%????位移DELTA?(1/8的倍數)?and?旋轉角度PHI?(degrees)
%????the?low?resolution?images?have?a?factor?SCALE?less?pixels
%????in?both?dimensions?than?the?input?image?IM
%????如果SNR是確定的?根據SNR添加給圖像不同的噪聲

%y?=?resample(x?p?q)
%采用多相濾波器對時間序列進行重采樣,
%得到的序列y的長度為原來的序列x的長度的p/q倍,p和q都為正整數。
%此時,默認地采用使用FIR方法設計的抗混疊的低通濾波器
im=resample(im21)‘;?%?upsample?the?image?by?2
im=resample(im21)‘;
for?i=2:nr
????%delta中的元素為0到1,delta(i2)*2*scale為0到8
????im2{i}?=?shift(im-delta(i2)*2*scale-delta(i1)*2*scale);?%?shift?the?images?by?integer?pixels
????if?(phi(i)?~=?0)
????????%B?=?imrotate(Aanglemethodbbox)
????????%method設定插值算法,有三種:最鄰近線性插值nearest,雙線性插值bilinear,雙三次插值bicubic
????????%bbox參數用于指定輸出圖像屬性:
????????%crop:?通過對旋轉后的圖像B進行裁剪,?保持旋轉后輸出圖像B的尺寸和輸入圖像A的尺寸一樣
????????%loose:?使輸出圖像足夠大,?以保證源圖像旋轉后超出圖像尺寸范圍的像素值沒有丟失。?一般上這種格式產生的圖像的尺寸都要大于源圖像的尺寸。
????????%將圖像A(圖像的數據矩陣)繞圖像的中心點旋轉angle度,?正數表示逆時針旋轉,?負數表示順時針旋轉。
????????%返回旋轉后的圖像矩陣。?
????????%以這種格式調用該函數,?該函數默認采用最近鄰線性插值(Nearest-neighbor?interpolation)。
????????%旋轉后的圖像超出的部分填充0(黑色)。
??????im2{i}?=?imrotate(im2{i}phi(i)‘bicubic‘‘crop‘);?
????end
end
im2{1}?=?im;?%?第一幅圖象沒有被旋轉

for?i=1:nr
????im2{i}?=?lowpass(im2{i}[0.12?0.12]);?%?低通濾波
????????????????????????????????????????????%?such?that?they?satisfy?the?conditions?specified?in?the?paper
????????????????????????????????????????????%?a?small?aliasing-free?part?of?the?frequency?domain?is?needed
????if?(i==1)?%?construct?ground?truth?image?as?reconstruction?target
?????ground_truth=downsample(im2{i}4)‘;
?????ground_truth=downsample(ground_truth4)‘;
????end
????%降低采樣率.?
????%將信號低通以后根據內插函數將采樣率降低?
????%作用就是減少數據率便于處理?
????im2{i}?=?downsample(im2{i}2*scale)‘;?%?downsample?the?images?by?8
????im2{i}?=?downsample(im2{i}2*scale)‘;
end

%?add?noise?to?the?images?(if?an?SNR?was?specified)
if?(nargin==6)
??for?i=1:nr
????S?=?size(im2{i});
????n?=?randn(S(1)S(2));
????n?=?sqrt(sum(sum(im2{i}.*im2{i}))/sum(sum(n.*n)))*10^(-snr/20)*n;
????s{i}?=?im2{i}+n;
????%snr?=?10*log10(sum(sum(im2{i}.*im2{i}))/sum(sum(n.*n)))
??end
else
??s=im2;
end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-12?14:54??人臉超分辨\
?????文件???????11670??2017-01-03?18:20??人臉超分辨\10.jpg
?????文件???????12602??2018-06-28?15:52??人臉超分辨\10_LR_1.tif
?????文件?????????988??2018-06-28?16:01??人臉超分辨\10_LR_1_LR_1.tif
?????文件?????????988??2018-06-28?16:01??人臉超分辨\10_LR_1_LR_2.tif
?????文件?????????986??2018-06-28?16:01??人臉超分辨\10_LR_1_LR_3.tif
?????文件?????????988??2018-06-28?16:01??人臉超分辨\10_LR_1_LR_4.tif
?????文件???????12590??2018-06-28?15:52??人臉超分辨\10_LR_2.tif
?????文件???????12584??2018-06-28?15:52??人臉超分辨\10_LR_3.tif
?????文件???????12580??2018-06-28?15:52??人臉超分辨\10_LR_4.tif
?????文件???????63620??2018-06-28?16:38??人臉超分辨\CINAMES.mat
?????文件???????63620??2018-06-28?16:38??人臉超分辨\CIPATH.mat
?????文件????????2641??2017-01-05?09:47??人臉超分辨\create_images.m
?????文件??????171690??2018-06-28?16:32??人臉超分辨\dehaze?-?副本_LR_1.tif
?????文件???????11140??2018-06-28?16:35??人臉超分辨\dehaze?-?副本_LR_1_LR_1.tif
?????文件?????????940??2018-06-28?16:38??人臉超分辨\dehaze?-?副本_LR_1_LR_1_LR_1.tif
?????文件?????????940??2018-06-28?16:38??人臉超分辨\dehaze?-?副本_LR_1_LR_1_LR_2.tif
?????文件?????????940??2018-06-28?16:38??人臉超分辨\dehaze?-?副本_LR_1_LR_1_LR_3.tif
?????文件?????????940??2018-06-28?16:38??人臉超分辨\dehaze?-?副本_LR_1_LR_1_LR_4.tif
?????文件???????11140??2018-06-28?16:35??人臉超分辨\dehaze?-?副本_LR_1_LR_2.tif
?????文件???????11138??2018-06-28?16:35??人臉超分辨\dehaze?-?副本_LR_1_LR_3.tif
?????文件???????11138??2018-06-28?16:35??人臉超分辨\dehaze?-?副本_LR_1_LR_4.tif
?????文件??????171418??2018-06-28?16:32??人臉超分辨\dehaze?-?副本_LR_2.tif
?????文件??????171676??2018-06-28?16:32??人臉超分辨\dehaze?-?副本_LR_3.tif
?????文件??????171370??2018-06-28?16:32??人臉超分辨\dehaze?-?副本_LR_4.tif
?????文件?????????852??2017-01-03?15:59??人臉超分辨\fuyuan.m
?????文件?????????308??2017-01-01?12:59??人臉超分辨\gauss_pyramid.m
?????文件???????13757??2017-01-05?10:31??人臉超分辨\generation.fig
?????文件???????10233??2016-12-31?16:12??人臉超分辨\generation.m
?????目錄???????????0??2018-07-02?15:44??人臉超分辨\gs圖庫\
?????文件?????3259602??2018-06-28?20:26??人臉超分辨\gs圖庫\中光1.JPG
............此處省略43個文件信息

評論

共有 條評論