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

5 ビュー (過去 30 日間)
bamini thavarajah
bamini thavarajah 2017 年 12 月 1 日
コメント済み: bamini thavarajah 2017 年 12 月 5 日
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 Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by