第1个回答 2013-04-10
rgb = imread('000.jpg');
[m,n,h] = size(rgb);
ww = fix(m/2);
hh = fix(n/2);
rgb1 = rgb(1:ww,1:hh,1:h);
rgb2 = rgb(1:ww,hh+1:end,1:h);
rgb3 = rgb(ww+1:end,1:hh,1:h);
rgb4 = rgb(ww+1:end,hh+1:end,1:h);
subplot(221); imshow(rgb1);
subplot(222); imshow(rgb2);
subplot(223); imshow(rgb3);
subplot(224); imshow(rgb4);本回答被提问者采纳