extraction of pixel values of image

2 views (last 30 days)
Smruti Khobragade
Smruti Khobragade on 24 Jan 2020
Commented: Smruti Khobragade on 29 Jan 2020
Hello
i want to extract the pixels values of image attached and store it in array or matrix?
  3 Comments
Guillaume
Guillaume on 24 Jan 2020
Edited: Guillaume on 24 Jan 2020
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 on 29 Jan 2020
i wanted to get the highest pixel values of black color to compare it with anothe images highest black color pixel values

Sign in to comment.

Answers (1)

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

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!