资源简介
基于邻域嵌入的超分辨率matlab代码,训练图为2张图片
代码片段和文件信息
function B = averaging3(A);
%average/blur a RGB image A into B
% A: m by n by 3
% B: m by n by 3
[mnx] = size(A);
A = double(A);
B = zeros(mn3);
for i=1:3:m
for j=1:3:n
temp = (sum(A(ij:j+2:))+sum(A(i+1j:j+2:))+sum(A(i+2j:j+2:)))/9;
for x=0:2
B(ij+x:) = temp;
B(i+1j+x:) = temp;
B(i+2j+x:) = temp;
end
end
end
B = uint8(B);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 434 2005-06-06 14:45 code\averaging3.m
....... 491 2003-11-11 18:19 code\averaging4.m
....... 891 2001-10-31 12:31 code\dist2.m
....... 337 2005-06-06 14:44 code\downsize.m
文件 1646 2009-12-17 15:10 code\example.m
....... 1613 2003-11-14 12:16 code\findfeature.m
....... 1270 2005-06-06 15:17 code\findgradient.m
....... 5008 2005-06-06 17:56 code\findimage1.m
....... 291 2003-11-12 22:36 code\findmean.m
....... 1587 2005-06-06 15:50 code\naneighbor.m
....... 597 2003-11-10 21:30 code\overlapcut.m
....... 235254 2003-11-07 17:39 code\pic\head-high.bmp
..A.SH. 11264 2009-12-17 15:01 code\pic\Thumbs.db
....... 589878 2005-06-06 18:01 code\pic\train-ab-high.bmp
目录 0 2009-12-17 15:01 code\pic
目录 0 2009-12-17 15:11 code
----------- --------- ---------- ----- ----
850561 16
评论
共有 条评论