Filter löschen
Filter löschen

Assigning RGB values to a new 3D RGB image

2 Ansichten (letzte 30 Tage)
t4741
t4741 am 7 Sep. 2019
Bearbeitet: DGM am 31 Jan. 2024
I am trying to apply a set of calculated RGB values as new values for a position in a m x n x 3 image. My attempt is shown in the code provided.
My error is in the line staticImage{i,j,:] = staticImage(1,j,newPixels) where i am trying to replace the layer at point i,j with the new RGB values 'newPixels'
Does anyone know how to do this?

Akzeptierte Antwort

Stephen23
Stephen23 am 7 Sep. 2019
staticImage(i,j,:) = [R,G,B];

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by