使用MATLAB获取存储在图像数组中的图像的像素值

时间:2016-10-22 17:18:21

标签: matlab

我有一个图像数组,我需要在存储在该数组中的特定图像的坐标处获取像素值。到目前为止,我的代码是

for n = 1:5                                  % I have five images
     frame = sprintf('img (%d).jpg', n);
     image{n} = imread(frame);
end
image{1}(1, 1)                  % Co-ordinate is [1 1] and image is first element of array

我将值设为零,即使预期的值是其他值。 任何人都可以在这方面帮助我吗?

0 个答案:

没有答案