how to change specific pixel from black to white?

1 回表示 (過去 30 日間)
rikki
rikki 2018 年 4 月 6 日
回答済み: Walter Roberson 2018 年 4 月 7 日
suppose if i have given a image of cameraman ..is there way to select only cameraman image and convert only that region to white and rest to black color. i had gone through matlab answers where image analyst had suggested ROI unfortunately i am not to able to find it in my matlab help.
any help would be appreciated.
  1 件のコメント
rikki
rikki 2018 年 4 月 7 日
no replies yet

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 4 月 7 日
Suppose you did something like
I = imread('cameraman.tif');
mask = I <= 64;
imshow(mask)
This particular approach turns a bit too much white, but it illustrates that you can turn part of an image white selectively with the rest turning black.
The rest of the task is in identifying your object (or person) of interest without selecting other things.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by