フィルターのクリア

how to find pixel value of an image

7 ビュー (過去 30 日間)
vasantha malairamar
vasantha malairamar 2017 年 3 月 27 日
回答済み: Aaron Charles Alday 2020 年 2 月 16 日
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
vasantha malairamar 2017 年 3 月 27 日
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
Aaron Charles Alday 2020 年 2 月 16 日
Hi! May I ask how to determine the pixel value of a grayscale picture?

カテゴリ

Help Center および File ExchangeImages についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by