how to make a programme for colors value from image?
Afficher commentaires plus anciens
It is my final project , I want to make a programme that take image from user when user click on image the programme give RGB value from image.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 23 Sep 2016
Simply call impixelinfo() to see the image (x,y) and intensity value as the user mouses around over the image.
hp = impixelinfo();
Or if you want to have them click on a point:
uiwait(helpdlg('Click on a point'));
[x, y] = ginput(1);
pixelValue = impixel(yourImage, round(x), round(y))
Or you can use imtool(yourImage) to bring up a GUI where the user can do even more.
1 commentaire
Dilshad Ahmad
le 24 Sep 2016
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!