extraction of pixel values of image

4 次查看(过去 30 天)
Hello
i want to extract the pixels values of image attached and store it in array or matrix?
  3 个评论
Guillaume
Guillaume 2020-1-24
编辑:Guillaume 2020-1-24
The question is not clear. In matlab, an image is stored as a matrix of pixel values. So if you've got the image loaded in matlab, you already have what you want.
Smruti Khobragade
Smruti Khobragade 2020-1-29
i wanted to get the highest pixel values of black color to compare it with anothe images highest black color pixel values

请先登录,再进行评论。

回答(1 个)

Jose Jeremias Caballero
编辑:Jose Jeremias Caballero 2020-1-24
>> a=imread('image.jpeg');
>> read1=a(:,:,1);
>> green1=a(:,:,2);
>> blue1=a(:,:,3);
  3 个评论
Image Analyst
Image Analyst 2020-1-24
read is a built-in function. You shouldn't use built-in function names as variables -- I think you meant red.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by