how to extract number of colors from an image using matlab

2 visualizaciones (últimos 30 días)
sathiya mala
sathiya mala el 16 de Abr. de 2015
Editada: Jan el 16 de Abr. de 2015
how to extract number of colors from an image using matlab

Respuestas (1)

Jan
Jan el 16 de Abr. de 2015
Editada: Jan el 16 de Abr. de 2015
Assuming that the "image" means a file, and not something on paper:
img = imread('YourImage.jpg');
uni = unique(reshape(img, [], 3), 'rows');
Unfortunately rgb2ind does not help here anymore.

Categorías

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