How to get rgb data value from jpeg image and include it to array?

hi, i want to get rgb value from pixel jpeg image, then i want include it to an array. can you help me?

回答 (1 件)

KSSV
KSSV 2017 年 9 月 27 日

0 投票

I = imread(yourimage) ;
R = I(:,:,1) ; % Red channel
G = I(:,:,2) ; % Green channel
B = I(:,:,3) ; % Blue channel
imshow(I)
Read about imread.

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2017 年 9 月 27 日

コメント済み:

2017 年 9 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by