how to get the location and the color of a pixel in workspace by clicking with the mouse - Matlab
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
HecLondon
le 17 Sep 2013
Réponse apportée : Chad Greene
le 23 Oct 2015
Hello,
I have some fiducial points in an image and I need the user to select the first point and get the coordinates of that point and the colour vector in workspace.
At the moment I have only found:
Data cursor, but it only gives the location, not the colour Impixel, apparently should give both, but it is a bit confusing and it's not working very well imroi only gives location too from what I've read
Can you please help me with this? Also, can the colour vector be in the Lab colorspace? (transform the image first, and then click in the point?)
Many thanks! Hector
0 commentaires
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 17 Sep 2013
Use impixelinfo(), available in the Image Processing Toolbox. Instructions are in the help.
5 commentaires
HecLondon
le 18 Sep 2013
5 commentaires
Image Analyst
le 18 Sep 2013
Let's continue the conversation under my answer, not yours. But it looks like that should give you the lab values, not the rgb values because lab_fabric is a different array than RGB.
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!