how to make a programme for colors value from image?
Show older comments
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.
Accepted Answer
More Answers (1)
Image Analyst
on 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 Comment
Dilshad Ahmad
on 24 Sep 2016
Categories
Find more on Image Filtering and Enhancement in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!