Borrar filtros
Borrar filtros

how to give color for same pixel values?

1 visualización (últimos 30 días)
sheno39
sheno39 el 19 de Oct. de 2013
Comentada: sheno39 el 24 de Oct. de 2013
i need to assign color for pixels having same value.. can anyone help me?

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Oct. de 2013
cmap = copper(22); %some color map
outimg = ind2rgb( uint8(locatn), cmap);
image(outimg);
  2 comentarios
sheno39
sheno39 el 22 de Oct. de 2013
sir this coding works for simple 5x5 matrix. but it is not working for image..
sheno39
sheno39 el 23 de Oct. de 2013
sir can u help me to give different colors for different regions

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 19 de Oct. de 2013
What do you mean by "pixels having the same value"? Do you mean, say, pixels having red color? And so you want to assign a green color to all pixels having "red" values? Meanwhile, why don't you look at my color segmentation demos in Image Analyst's awesome File Exchange?
  8 comentarios
sheno39
sheno39 el 24 de Oct. de 2013
sir can u help me convert RGB image from linear index.
sheno39
sheno39 el 24 de Oct. de 2013
Editada: sheno39 el 24 de Oct. de 2013
I used ind2rgb function. but i didn't get the correct output

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by