请问下面一段程序及注释是什么意思?matlab
% Let's extract a rectangle in the blue (3rd) plane, and binarize the
% image for levels < 80 (white pixels are logical 'true'):
i = c(1:1200, 120:2150, 3);
bi = (i<80);
imagesc(bi)
colormap gray
axis image
尤其是这一句
i = c(1:1200, 120:2150, 3);
答案:感觉像图片的像素,c是个三维的矩阵,1:1200表示从c中取1到1200行,120:2150表示列,3表示层吧
其他:代码不完整。
c应该是一个图片的3维RGB矩阵,通过转换后成为一个2维的矩阵 应该是c是三维矩阵 取他的第一维1:1200,二 120:2150,三 3
上一个:谁会用MATLAB编写一个N=128的FIR滤波器程序,谢谢
下一个:在用matlab求离散序列的傅立叶变化时出现了如下错误:Warning: Divide by zero. > In czt at 63。程序如下