count how many pixel has value 255 in an image

조회 수: 7 (최근 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 CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by