Effacer les filtres
Effacer les filtres

how to change the color of pixels in a binary image?

9 vues (au cours des 30 derniers jours)
bamini thavarajah
bamini thavarajah le 1 Déc 2017
I want to generating random pixels on edge boundary and give red color to that pixels. Thanks in advance.
  1 commentaire
Rik
Rik le 1 Déc 2017
A binary image has only 2 colors. Depending on what method you choose to display it, you can choose the two colors yourself.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 2 Déc 2017
See attached m-file.
  20 commentaires
Image Analyst
Image Analyst le 5 Déc 2017
The image will be red anywhere the red value is non-zero and the green and blue values are both 0. If that describes the whole image, then it's the whole image. If that describes only some pixels in the image, then only those pixels will be red.
bamini thavarajah
bamini thavarajah le 5 Déc 2017
thanks a lot sir for spent your time for me. I understood & I got the answer.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing and Computer Vision 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!

Translated by