Borrar filtros
Borrar filtros

Assigning RGB values to a new 3D RGB image

1 visualización (últimos 30 días)
t4741
t4741 el 7 de Sept. de 2019
Editada: DGM el 31 de En. de 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?

Respuesta aceptada

Stephen23
Stephen23 el 7 de Sept. de 2019
staticImage(i,j,:) = [R,G,B];

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by