① 求MATLAB代码
我只能说,这种限定行数的东西很疼。
再说句不好听的,多一些空行,代码一行拆成两行写,多一些注释,再牛一点把一些MATLAB自带的函数用循环再实现一次,这样的话,几百行的代码肯定可以干到1200行。
② matlab源代码
hrollfcoef这个函数不是matlab自带的
function [xh] = hrollfcoef(irfn,ipoint,sr,alfs,ncc)
%****************** variables *************************
% irfn : Number of symbols to use filtering
% ipoint : Number of samples in one symbol
% sr : symbol rate
% alfs : rolloff coeficiense
% ncc : 1 -- transmitting filter 0 -- receiving filter
% *****************************************************
xi=zeros(1,irfn*ipoint+1);
xq=zeros(1,irfn*ipoint+1);
point = ipoint;
tr = sr ;
tstp = 1.0 ./ tr ./ ipoint;
n = ipoint .* irfn;
mid = ( n ./ 2 ) + 1;
sub1 = 4.0 .* alfs .* tr; % 4*alpha*R_s
for i = 1 : n
icon = i - mid;
ym = icon;
if icon == 0.0
xt = (1.0-alfs+4.0.*alfs./pi).* tr; % h(0)
else
sub2 =16.0.*alfs.*alfs.*ym.*ym./ipoint./ipoint;
if sub2 ~= 1.0
x1=sin(pi*(1.0-alfs)/ipoint*ym)./pi./(1.0-sub2)./ym./tstp;
x2=cos(pi*(1.0+alfs)/ipoint*ym)./pi.*sub1./(1.0-sub2);
xt = x1 + x2; % h(t) plot((1:length(xh)),xh)
else % (4alphaRst)^ = 1plot((1:length(xh)),xh)
xt = alfs.*tr.*((1.0-2.0/pi).*cos(pi/4.0/alfs)+(1.0+2.0./pi).*sin(pi/4.0/alfs))./sqrt(2.0);
end % if sub2 ~= 1.0
end % if icon == 0.0
if ncc == 0 % in the case of receiver
xh( i ) = xt ./ ipoint ./ tr; % normalization
elseif ncc == 1 % in the case of transmitter
xh( i ) = xt ./ tr; % normalization
else
error('ncc error');
end % if ncc == 0
end % for i = 1 : n
%******************** end of file ***************************
网上找的,你看看能不能拼到你那个程序里去
③ 怎样建立matlab最优解图像超分辨率处理
matlab要从命令窗口输入命令来做图像处理
假如你的图像在桌面上,名字是a.bmp
你可以用如下方法读入图片:
I=imread('C:\Documents and settings\Administrator\桌面\a.bmp');
imshow(I) %显示图像
你可以根据此来修改你的小波变换程序,以便用于你的图像处理。你自己先试试,如果不行的话,再把你的程序贴出来,我帮你看看,改好了发给你。
④ 请问大虾们,有没有超分辨率的可运行代码matlab或者C++都可以。拜托了!
http://yuwing.kaist.ac.kr/projects/superresolution/index.htm
上面有源代码可以下载
⑤ 求超分辨率图像重建的MATLAB代码或者软件
function Output = denoiseByTv(Ima, Thr)
ImaTv = imfilter(Ima, 'Laplacian');
ImaTh = (ImaTv< Thr)*ImaTv;
output = Ima - ImaTh;
end