我的猜测是,首先您需要读取图像的大小,然后继续定义四个象限。就像这样:
A = image(1:n/2, 1:m/2);
B = image(1:n/2, m/2:m);
C = image(n/2:n, 1:m/2);
D = image(n/2:n, m/2:m);
我说的对吗?