数组下标为正整数
[图像高度,宽度,通道数目] = size(imread())
img_0 = imread(['./Flickr1024/',img_list(idx_file).name]);
[a,b,c] = size(img_0(1:2,1:3,:));
fprintf('[%d %d %d
]',a,b,c)
【2,3,3】所以1:2区间左闭右闭
for idx_file = 1:5%[]
fprintf('%d
',idx_file)
end
1
2
3
4
5
img_lr_0 = imresize(img_hr_0, 1/scale, 'bicubic'); 【a,b,c】===>【a/scale,b/scale,c】