Image processing 如何利用Matlab将图像分割成8个区域
我有256x256的图像,有没有简单的方法把它分成8个区域(32x32)并得到一个特定的区域?例:区域4,6图像存储为二维数组Image processing 如何利用Matlab将图像分割成8个区域,image-processing,matlab,Image Processing,Matlab,我有256x256的图像,有没有简单的方法把它分成8个区域(32x32)并得到一个特定的区域?例:区域4,6图像存储为二维数组 function region = fnGetRegion(C,I,J); % C is 256x256 image, I, J each range 1:8 to get 32x32 subregion of C region = C((I-1)*32+[1:32],(J-1)*32+[1:32]); end 图像存储为二维数组 function region =
function region = fnGetRegion(C,I,J);
% C is 256x256 image, I, J each range 1:8 to get 32x32 subregion of C
region = C((I-1)*32+[1:32],(J-1)*32+[1:32]);
end
图像存储为二维数组
function region = fnGetRegion(C,I,J);
% C is 256x256 image, I, J each range 1:8 to get 32x32 subregion of C
region = C((I-1)*32+[1:32],(J-1)*32+[1:32]);
end