how to find pixel value of an image

7 次查看(过去 30 天)
imread('a.jpg');
[r c]=size(A);pixel
  1 个评论
Adam
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 个)

aaru sri
aaru sri 2019-2-7
how to make a one pixel change in it

KSSV
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 个评论
vasantha malairamar
Undefined function or variable 'c'.
Error in secure>pushbutton2_Callback (line 306) rg = impixel(I,r,c) ;
KSSV
KSSV 2017-3-27
r,c should be indices which stand off row and column positions.

请先登录,再进行评论。


Sushil  Sharma
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

Aaron Charles Alday
Hi! May I ask how to determine the pixel value of a grayscale picture?

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by