Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.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 选择像素的4个相邻点_Image_Matlab_Pixels_Neighbours - Fatal编程技术网

Image 选择像素的4个相邻点

Image 选择像素的4个相邻点,image,matlab,pixels,neighbours,Image,Matlab,Pixels,Neighbours,如何在matlab中选择像素的4邻域 谢谢。如果图像为img,当前像素索引为i和j,则四个相邻像素将为: img(i-1,j); img(i+1,j); img(i,j-1); img(i,j+1); 具有矢量化解决方案的类似问题:以及

如何在matlab中选择像素的4邻域

谢谢。

如果图像为img,当前像素索引为i和j,则四个相邻像素将为:

img(i-1,j);
img(i+1,j);
img(i,j-1);
img(i,j+1);

具有矢量化解决方案的类似问题:以及