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

10 visualizaciones (últimos 30 días)
I want to generating random pixels on edge boundary and give red color to that pixels. Thanks in advance.
  1 comentario
Rik
Rik el 1 de Dic. de 2017
A binary image has only 2 colors. Depending on what method you choose to display it, you can choose the two colors yourself.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by