how to give color for same pixel values?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i need to assign color for pixels having same value.. can anyone help me?
0 commentaires
Réponse acceptée
Walter Roberson
le 21 Oct 2013
cmap = copper(22); %some color map
outimg = ind2rgb( uint8(locatn), cmap);
image(outimg);
Plus de réponses (1)
Image Analyst
le 19 Oct 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 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!