how to find pixel value of an image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
vasantha malairamar
el 27 de Mzo. de 2017
Respondida: Aaron Charles Alday
el 16 de Feb. de 2020
imread('a.jpg');
[r c]=size(A);pixel
1 comentario
Adam
el 27 de Mzo. de 2017
Your question is not clear, mostly because you just wrote 2 lines of code without any question apart from the very vague title.
Respuestas (4)
KSSV
el 27 de Mzo. de 2017
% Gray Image
I = imread('your image') ;
level = I(r, c);
% RGB image
I = imread('your image') ;
rgb = impixel(I,r,c) ;
2 comentarios
Sushil Sharma
el 7 de Nov. de 2019
I just update your answer, if you need to know the rows and columns in your image:
Let's say you have an image which is
I = imread('abc.png') % your image
rgb = impixel(I,rows, columns) %impixel function
rgb = 107 107 107 % you will get the pixel value
0 comentarios
Aaron Charles Alday
el 16 de Feb. de 2020
Hi! May I ask how to determine the pixel value of a grayscale picture?
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!