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