How to display pixel values on the image and label on the region I want?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Atifah Samuri
am 18 Dez. 2021
Kommentiert: Image Analyst
am 20 Dez. 2021
My project is want to enhance the hand vein image. The problem is I need to display some values on the vein. For example, pixel values, SNR and MSE. Below I attached the code to get the pixel values but I don't understand why the value have 3.
imshow 'hazirah.jpg';
pixel_values = impixel;
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 18 Dez. 2021
You have 3 values because it's a color image. Those are the red, green, and blue intensity values.
rgbImage = imread('hazirah.jpg');
imshow(rgbImage);
impixelinfo; % Mouse around and see values.
row = 1; % whatever you want.
collumn = 4; % whatever you want.
pixel_values = impixel(rgbImage, row, column);
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!