assign rgb to 3d array

1 Ansicht (letzte 30 Tage)
RuiQi
RuiQi am 5 Jul. 2017
Kommentiert: Adam am 5 Jul. 2017
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 Kommentare
KSSV
KSSV am 5 Jul. 2017
Show the complete code which you tried...image(row,col,:) should work.
Adam
Adam am 5 Jul. 2017
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!

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by