20
20
y = round(0.5*(r(2)+r(4)));
24
24
% Multi-column array with one 4-comp. rect per column:
25
25
x = round(0.5*(r(1,:)+r(3,:)));
26
26
y = round(0.5*(r(2,:)+r(4,:)));
29
29
% Multi-row array with one 4-comp. rect per row:
30
30
x = round(0.5*(r(:,1)+r(:,3)));
31
31
y = round(0.5*(r(:,2)+r(:,4)));