assign rgb to 3d array

3 次查看(过去 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