24小时热门版块排行榜    

查看: 287  |  回复: 0

大头超人

新虫 (初入文坛)

[求助] matlab图像处理求助!急

I = imread('TwoCircles.tif');
I = double(I)/255;    [m m1] = size(I);

% Degradation parameters
kernel_type = 'gaussian';        kernel_size = 7;               kernel_std =1.5;                noise_std = 0.05;


% Generate the observed image with blur and noise
h = fspecial(kernel_type, kernel_size, kernel_std); Htf = imfilter(I, h, 'circular', 'same', 'conv');   noise = normrnd(0, noise_std, size(I));         g = Htf + noise;

% Generate the observed image with blur and noise
h_full = zeros(m);           [mh nh] = size(h);
h_full(1:mh,1:nh) = h;        
h_full = circshift(h_full, -round([(nh-1)/2 (mh-1)/2]));    eigHT = conj(fft2(h_full));  
我想问一下最后两行程序这样做的原因!谢谢了!
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 大头超人 的主题更新
信息提示
请填处理意见