資源簡介
隨機共振的Runge-Kutta解法,內含一個說明,利用隨機共振對圖像二維降噪

代碼片段和文件信息
oriImage?=?imread(‘example.jpg‘);
grayImage?=?rgb2gray(oriImage);
figure;
imshow(grayImage);
title(‘灰度圖‘);
%?二維圖像加高斯白噪音
noiImage?=?imnoise(grayImage‘gaussian‘0.1);?%給圖像加入噪聲?0.1為可以修改的參數?
figure;?
imshow(noiImage);
title(‘加噪聲之后‘);?
[rc]=size(noiImage);?%?F?1024?x?1024?r為行數?c為列數
originalMinValue?=?double(min(min(noiImage)));
originalMaxValue?=?double(max(max(noiImage)));
originalRange?=?originalMaxValue?-?originalMinValue;
%?Get?a?double?image?in?the?range?0?to?1
desiredMin?=?0;
desiredMax?=?1;
desiredRange?=?desiredMax?-?desiredMin;
dblImageS1?=?desiredRange?*?(double(noiImage)?-?originalMinValue)?/?originalRange?+?desiredMin;
figure;
imshow(dblImageS1);
title(‘歸一圖‘);
%reduce?dimension?by?row
rD=reshape(dblImageS1‘?1?prod(size(dblImageS1)));
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7945??2018-03-30?21:23??隨機共振的Runge-Kutta解法\example.jpg
?????文件????????795??2018-03-30?19:57??隨機共振的Runge-Kutta解法\normalization.asv
?????文件????????835??2018-03-30?21:10??隨機共振的Runge-Kutta解法\normalization.m
?????文件???????1280??2018-03-30?21:27??隨機共振的Runge-Kutta解法\resonate.asv
?????文件???????1347??2018-03-30?21:41??隨機共振的Runge-Kutta解法\resonate.m
?????文件????????552??2018-03-30?21:22??隨機共振的Runge-Kutta解法\resonate2.asv
?????文件????????640??2018-03-30?21:40??隨機共振的Runge-Kutta解法\resonate2.m
?????文件????????299??2018-03-30?19:52??隨機共振的Runge-Kutta解法\sr.m
?????文件????????164??2018-03-30?21:47??隨機共振的Runge-Kutta解法\說明.txt
?????目錄??????????0??2018-03-30?21:45??隨機共振的Runge-Kutta解法
-----------?---------??----------?-----??----
????????????????13857????????????????????10
評論
共有 條評論