extract only white pixels from an image

How can I extract mean and variance of only white pixels of an image?

답변 (1개)

Image Analyst
Image Analyst 2019년 12월 28일
편집: Image Analyst 2019년 12월 28일

0 개 추천

What value do you consider "white"? Let's say it's 230. Then you can get a binary image
binaryImage = grayImage >= 230;
Now, exactly what does "extract" mean to you? You want to consider all the gray values in the binary image? If so do
maskMean = mean(grayImage(binaryImage));
maskSD = std(grayImage(binaryImage));
maskVar = var(grayImage(binaryImage));

댓글 수: 1

Mary Baratzadeh
Mary Baratzadeh 2019년 12월 30일
excuse me, my mean is calculate the average white pixels of an image

댓글을 달려면 로그인하십시오.

질문:

2019년 12월 28일

댓글:

2019년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by