Filter löschen
Filter löschen

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

9 Ansichten (letzte 30 Tage)
I want to generating random pixels on edge boundary and give red color to that pixels. Thanks in advance.
  1 Kommentar
Rik
Rik am 1 Dez. 2017
A binary image has only 2 colors. Depending on what method you choose to display it, you can choose the two colors yourself.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing and Computer Vision finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by