Detecting colour of a specific x and y coordinate of an image

2 ビュー (過去 30 日間)
N/A
N/A 2017 年 3 月 30 日
回答済み: Thorsten 2017 年 3 月 30 日
I'm trying to obtain the colour of a specific coordinate on an image. For example: X is an image with size width:300 and height:300. I would like to know the colour at x:10 and y:10 coordinate. I couldn't write any code because I don't know if this is even possible in matlab?
Thank you.
  1 件のコメント
Adam
Adam 2017 年 3 月 30 日
Is it a true RGB image or an index image mapped onto a colourmap?

サインインしてコメントする。

採用された回答

Thorsten
Thorsten 2017 年 3 月 30 日
col = I(x, y, :);

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by