Borrar filtros
Borrar filtros

change color intensity of matrix for some pixels

1 visualización (últimos 30 días)
Anvinder  Singh
Anvinder Singh el 12 de Mzo. de 2016
Respondida: Walter Roberson el 12 de Mzo. de 2016
I have a matrix and it has 2 squares, i have used "a = ones(256, 256, 3);" so it gives me a white background. I wantt to change it to gray. What should i do ? Thank you.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Mzo. de 2016
For example,
a(10:20,32:78,:) = 1/4;

Categorías

Más información sobre Image Processing Toolbox 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