Azzera filtri
Azzera filtri

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

9 visualizzazioni (ultimi 30 giorni)
I want to generating random pixels on edge boundary and give red color to that pixels. Thanks in advance.
  1 Commento
Rik
Rik il 1 Dic 2017
A binary image has only 2 colors. Depending on what method you choose to display it, you can choose the two colors yourself.

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 2 Dic 2017
See attached m-file.
  20 Commenti
Image Analyst
Image Analyst il 5 Dic 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 il 5 Dic 2017
thanks a lot sir for spent your time for me. I understood & I got the answer.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by