how to make a programme for colors value from image?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 23 de Sept. de 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 comentario
Dilshad Ahmad
el 24 de Sept. de 2016
Categorías
Más información sobre Image Filtering and Enhancement en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!