plotting only black and white pixel values on Histogram

3 ビュー (過去 30 日間)
shalipse
shalipse 2019 年 6 月 18 日
コメント済み: Adam 2019 年 6 月 18 日
Hello Everyone,
Could someone please help out?
I trying to plot black and white pixel values of a picture on Histogram in Matlab.
in other words, showing the image with all non-black pixels set to white. This would mean just leaving the pixels with a value of 0 (black) and setting all others to 255 (white).
Many thanks
  1 件のコメント
Adam
Adam 2019 年 6 月 18 日
Seems like simply a case of some logical masking. e.g.
myImage( myImage ~= 0 ) = 255;
Then run a histogram on the result.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by