how to find pixel value of an image
1 次查看(过去 30 天)
显示 更早的评论
imread('a.jpg');
[r c]=size(A);pixel
1 个评论
Adam
2017-3-27
Your question is not clear, mostly because you just wrote 2 lines of code without any question apart from the very vague title.
回答(4 个)
KSSV
2017-3-27
% Gray Image
I = imread('your image') ;
level = I(r, c);
% RGB image
I = imread('your image') ;
rgb = impixel(I,r,c) ;
2 个评论
Sushil Sharma
2019-11-7
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 个评论
Aaron Charles Alday
2020-2-16
Hi! May I ask how to determine the pixel value of a grayscale picture?
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!