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

9 次查看(过去 30 天)
I want to generating random pixels on edge boundary and give red color to that pixels. Thanks in advance.
  1 个评论
Rik
Rik 2017-12-1
A binary image has only 2 colors. Depending on what method you choose to display it, you can choose the two colors yourself.

请先登录,再进行评论。

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by