how to find pixel value of an image
조회 수: 2 (최근 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!