Giving certain pixels a colour
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
For an image I have, how can I do the following in MATLAB?
- Giving the pixels with values 100 for instance the colour green
EDIT
Giving all pixels except those with values `255` and `0` the colour `green`
- Leaving the pixels with 0 as is. That is, keeping them black
- Giving all other pixels the colour red
EDIT
Giving those pixels with value `255` the colour `red`
Thanks.
0 commentaires
Réponses (1)
  Image Analyst
      
      
 le 1 Oct 2013
        If the image is not grayscale, then what do you mean by "pixels with values 100"??? So, if it's RGB, do you want to replace only pixels with value (100,100,100) - in other words, 100 in every single color channel? That probably won't happen too often unless you have a synthetic (created) image.
Voir également
Catégories
				En savoir plus sur Modify Image Colors dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

