一、RGB图像的截取 1. 首先读取图像 img = imread(path); % 截取某一区间(row1:row2, col1:col2)的图像 newImg = img(row1:row2, col1:col2, :); // 其他的操作,后续继续