assign rgb to 3d array

조회 수: 1 (최근 30일)
RuiQi
RuiQi 2017년 7월 5일
댓글: Adam 2017년 7월 5일
How do I give color to a specific row, col in my 3D matrix 321x481x3 uint8 ?
image(row,col,:) = [0, 0, 255];
does not work
  댓글 수: 2
KSSV
KSSV 2017년 7월 5일
Show the complete code which you tried...image(row,col,:) should work.
Adam
Adam 2017년 7월 5일
Also saying 'does not work' is no use to anyone. Do you mean it gives an error (if so give the full error message) or that it doesn't give the answer you expect or something else?
There's not much point asking a question if you can't be bothered to give the obvious relevant information!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by