资源简介
matlab图像超分辨处理与重建的代码,基于matlab开发,界面操作的
代码片段和文件信息
function [absdiff snr psnr imfid mse] = compare(originalimg restoredimg)
%Function to compare the original image with the
%restored image using some predefined methods
%Inputs: originalimg restoredimg
%Returns: absdiff snr psnr imfid mse
%
%originalimg: It is the original unblurred image
%restoredimg: It is the restored image
%absdiff: Average Absolute Difference
%snr: Signal to Noise Ratio (dB)
%psnr: Peak Signal to Noise Ratio (dB)
%imfid: Image Fidelity
%mse: Mean Square Error
%
%Example:
% [absdiff snr psnr imfid mse] = compare(originalimg restoredimg);
% This call takes original image and the restored image and returns
% the comparison of both the images using some predefined methods.
%Average absolute difference
%{
md = originalimg - restoredimg;
mdsize = size(md);
summation = 0;
for i = 1:mdsize(1);
for j = 1:mdsize(2);
summation = summation + abs(md(ij));
end
end
absdiff = summation/(mdsize(1)*mdsize(2));
%}
%Signal to Noise Ratio (SNR)
%{
md = (originalimg - restoredimg).^2;
mdsize = size(md);
summation = 0;
sumsq=0;
for i = 1:mdsize(1);
for j = 1:mdsize(2);
summation = summation + abs(md(ij));
sumsq = sumsq + (originalimg(ij)^2);
end
end
snr = sumsq/summation;
snr = 10 * log10(snr);
%}
%Peak Signal to Noise Ratio (PSNR)
%{
md = (originalimg - restoredimg).^2;
mdsize = size(md);
summation = 0;
sumsq=0;
for i = 1:mdsize(1);
for j = 1:mdsize(2);
summation = summation + abs(md(ij));
end
end
psnr = size(originalimg 1) * size(originalimg 2) * max(max(originalimg.^2))/summation;
psnr = 10 * log10(psnr);
%}
%Image Fidelity
md = (originalimg - restoredimg).^2;
mdsize = size(md);
summation = 0;
sumsq = 0;
for i = 1:mdsize(1);
for j = 1:mdsize(2);
summation = summation + abs(md(ij));
sumsq = sumsq + (originalimg(ij)^2);
end
end
imfid = (1-summation)/sumsq;
%}
%Mean Square Error
%{
diff = originalimg - restoredimg;
diff1 = diff.^2;
mse = mean(mean(diff1));
%}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 79232 2005-04-25 21:35 GUIRestore.fig
文件 41623 2005-04-25 21:21 GUIRestore.m
文件 43632 2004-09-18 18:42 GUIWelcome.fig
文件 12276 2005-04-19 00:51 GUIWelcome.m
文件 1582 2005-05-05 12:50 Hough(old).m
文件 828 2005-04-17 07:12 Hough.m
文件 1365 2005-04-24 05:42 Inverse.m
文件 2030 2005-05-05 15:00 Lucy.m
文件 418 2005-04-24 06:46 my_closereq.m
文件 1733 2005-05-05 14:49 Wiener.m
文件 17189 2005-04-14 09:34 Help\about_us\akshata.jpg
文件 49064 2005-04-12 15:48 Help\about_us\oursnap.jpg
文件 14410 2005-04-14 09:39 Help\about_us\prateek.jpg
文件 18662 2005-04-15 10:30 Help\about_us\wilson.jpg
文件 5311 2005-04-14 09:33 Help\about_us\wilson2.jpg
文件 1766 2005-12-17 01:48 Help\About_Us.html
文件 4375 2005-04-12 13:34 Help\basics\degradation_model.jpg
文件 7661 2005-04-12 14:15 Help\basics\degraded_dot_psf.jpg
文件 860 2005-04-12 13:49 Help\basics\dot.jpg
文件 1251 2005-04-12 13:59 Help\basics\dot_blur_angle.jpg
文件 1251 2005-04-12 13:56 Help\basics\dot_blur_len.jpg
文件 6363 2005-04-12 14:19 Help\basics\gaussian.jpg
文件 6883 2005-04-12 14:14 Help\basics\original_dot_psf.jpg
文件 746 2005-04-12 14:22 Help\basics\poisson.jpg
文件 7759 2005-04-12 14:19 Help\basics\salt_&_pepper.jpg
文件 7850 2005-04-12 14:19 Help\basics\speckle.jpg
文件 6702 2005-12-17 01:48 Help\Basics.html
文件 2455 2005-12-17 01:52 Help\Degrade.html
文件 7915 2005-04-13 05:58 Help\getting_started\degrade_menu.jpg
文件 7696 2005-04-13 05:59 Help\getting_started\edit_menu.jpg
............此处省略56个文件信息
相关资源
- 基于形态学滤波去噪matlab代码
- 基于MATLABGUI实现图像阈值分割处理的
- RSSI定位 MATLAB
- Ncut图像分割算法MATLAB实现
- magnify用于matlab的放大插件
- matlab-快速搜索随机树算法实现RRT
- PID参数整定的临界比例度法的实现
- 基于MATLAB的分数阶负反馈控制系统的
- matlab编程100篇
- RRT* RRT star RRT 星路径规划算法的matl
- SVPWM整流器逆变器matlab仿真
- fm调制解调系统matlab仿真
- matlab 2012b crack
- Matlab_WebRTC_回声消除_fullaec
- matlab2011a 破解文件
- 三个参与主体演化博弈matlab.docx
- 支持向量机用于肌电信号模式识别的
- 数字信号处理实验MATLAB版的
- NSST(非下采样剪切波变换)matlab工具
- DFS优先算法matlab实现
- 多径信道下 简单OFDM matlab仿真
- FastSLAMmatlab仿真算法
- 锁相环 matlab程序 附带注释
-
matlab simuli
nk 电路距离保护仿真文件 - 光伏电池阵列matlab模型
- 蚁群算法实现机器人避障和路径规划
- matlab算法——计算三维散乱点云的曲
- 潮流计算matlab程序
- matlab环境下光伏电池典型模型光照变
- 拉丁超立方体抽样matlab
评论
共有 条评论