how to make a programme for colors value from image?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 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 Kommentar
Dilshad Ahmad
am 24 Sep. 2016
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!