extract only white pixels from an image
1 回表示 (過去 30 日間)
古いコメントを表示
How can I extract mean and variance of only white pixels of an image?
0 件のコメント
回答 (1 件)
Image Analyst
2019 年 12 月 28 日
編集済み: Image Analyst
2019 年 12 月 28 日
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));
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!