count how many pixel has value 255 in an image

5 ビュー (過去 30 日間)
Tu Nguyen
Tu Nguyen 2022 年 2 月 16 日
編集済み: AndresVar 2022 年 2 月 16 日
The image cameraman, how can we find how many pixel has value of 255? Please help me

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2022 年 2 月 16 日
編集済み: KALYAN ACHARJYA 2022 年 2 月 16 日
data=GrayImage==255;
total_pix=sum(data(:))
  4 件のコメント
Tu Nguyen
Tu Nguyen 2022 年 2 月 16 日
Thank you, I just use the cameraman as an example. Thank a lot
KALYAN ACHARJYA
KALYAN ACHARJYA 2022 年 2 月 16 日
@AndresVar Yes, Thanks for adding more.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by