Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image processing 如何利用Matlab将图像分割成8个区域_Image Processing_Matlab - Fatal编程技术网

Image processing 如何利用Matlab将图像分割成8个区域

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 =

我有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 = 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