资源简介
超分辨率图像处理,matlab源码,效果远远优于三次插值
代码片段和文件信息
function [SupResol] = SuperresCode(Low MFactor ColorProcMethod Model)
if nargin < 4
load MatlabR2007aSupResModel.mat;
end
if nargin < 3
ColorProcMethod = ‘L‘;
end
BoundarySize = 9;
warning off;
BiC = imresize(LowMFactor ‘bicubic‘);
warning on;
BiC = padarray(BiC [BoundarySizeBoundarySize] ‘symmetric‘‘both‘);
[SupResol] = SuperresMexInt(BiC MFactor ColorProcMethod Model);
SupResol = SupResol(BoundarySize+1:end-BoundarySizeBoundarySize+1:end-BoundarySize:);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [SupResol] = SuperresMexInt(BiC MFactor ColorProcMethod Model)
[IHeightIWidthColorDim] = size(BiC);
if ColorDim > 1 %%% if color
if ColorProcMethod == ‘C‘
%%% proc. each RGB channel independently
RBiC = BiC(::1);
GBiC = BiC(::2);
BBiC = BiC(::3);
SupResol = zeros(size(BiC));
[SupResol(::1)] = SuperresMexInt(RBiC MFactor ColorProcMethod Model);
[SupResol(::2)] = SuperresMexInt(GBiC MFactor ColorProcMethod Model);
[SupResol(::3)] = SuperresMexInt(BBiC MFactor ColorProcMethod Model);
%%% proc. each RGB channel independently
else
%%% proc. luminance component only
CBiC = double(BiC)/255;
YIQ = rgb2ntsc(CBiC);
Lum = YIQ(::1);
[SupResolLum] = SuperresMexInt(Lum*255 MFactor ColorProcMethod Model);
YIQ(::1) = SupResolLum/255;
SupResol = ntsc2rgb(YIQ);
SupResol = SupResol*255;
%%% proc. luminance component only
end
else
BiC = double(BiC)/255*2-1;
if MFactor == 2
[SupResol] = SuperresCodeMex(BiC Model.M2 MFactor);
elseif MFactor == 3
[SupResol] = SuperresCodeMex(BiC Model.M3 MFactor);
elseif MFactor == 4
[SupResol] = SuperresCodeMex(BiC Model.M4 MFactor);
else
display(‘Mag. factor should be [234].‘);
return;
end
SupResol = (SupResol+1)/2*255;
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 36864 2010-03-20 13:26 SuperresCodeMex.mexw64
文件 435 2008-06-22 10:43 Test.m
文件 185 2008-06-21 23:41 Usage.txt
文件 40054 2008-04-30 08:50 Butterfly.bmp
文件 203416 2011-06-24 09:55 HighResol.png
文件 1628311 2008-06-22 07:53 MatlabR2007aSupResModel.mat
文件 2110 2008-06-22 10:47 SuperresCode.m
文件 26271 2008-07-02 13:28 SuperresCodeMex.mexa64
文件 26648 2008-07-02 13:28 SuperresCodeMex.mexglx
文件 28672 2008-07-02 13:28 SuperresCodeMex.mexw32
相关资源
- 倒立摆matlab仿真模型
- MATLAB数学建模-配书代码
- 结构光超分辨MATLAB代码,测试图像,
- IMAGE_MATLAB_GUI
- MATLAB Text Analytics Toolbox官方教程
- gps基本原理及其matlab仿真199992
- 信号分析与处理——MATLAB语言及应用
- MATLAB编程100例
- 扫描文件的光学字符分割文字分割M
- 交替方向乘子法ADMM算法的matlab代码
- 图像插值方法3种方法,MATLAB代码
- AF、DF协议的MATLAB仿真
- tobii眼动仪视觉追踪程序源码,MATLA
- ADMM工具包
- Matlab实现FCM算法
- matlab 计算李雅普诺夫指数的方法集合
- 多径多普勒效应讲义(含matlab程序)
- 基于Matlab的数字图像处理课程设计
- 雷达系统设计MATLAB仿真.pdf196612
- Matlab 揭秘 全本
- MATLAB建模与仿真应用教程(第2版 )
- 精简版绿色Matlab
- DTFT、DFT、FFT原理及编程
- 无线传感器网络定位程序(matlab可以
- 雷达系统设计及matlab仿真 全文书籍
- 基于matlab图像处理系统含GUI
- 虹膜识别matlab程序源代码
- MATLAB程序——癫痫病人的脑电信号提
- KNN算法对MNIST数据集分类
- 系统辨识与自适应控制MATLAB仿真1904
评论
共有 条评论