How to find pixel value vector for a colour image?
Afficher commentaires plus anciens
Can we find pixel value vector for a colour image using MATLAB?
4 commentaires
Walter Roberson
le 8 Fév 2012
Please explain this question further.
mahesh vuppala
le 6 Fév 2015
how to find vector of an image using matlab
Geert
le 6 Fév 2015
please explain this question even more further...
pixel value vector or vector of an image does not mean anything. You'll have to be a lot clearer on what you're asking. Use examples, if needed.
You're allowed to use more than one sentence, you know. The onus is on you to make yourself understood, not on us to try to decipher what you mean.
Réponses (1)
Guillaume
le 6 Fév 2015
Possibly, that's what you mean:
img = imread('peppers.png'); %read a demo image
rgbvalue = img(20, 30, :) %get rgb values of pixel at row 20, column 30
It's basic matrix indexing.
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!