how to split a gray image into dark, middle and bright pixels
조회 수: 1 (최근 30일)
이전 댓글 표시
how to split a gray image into dark, middle and bright pixels
댓글 수: 0
채택된 답변
Image Analyst
2014년 7월 14일
You would have to know the algorithm they're using because there are quite a few gray levels that seem to be in all three classes. I think there is quite a bit of overlap in what they call dark, middle, and bright.
댓글 수: 2
Image Analyst
2014년 7월 14일
Simple method is thresholding
darkPixels = grayImage(grayImage < 100));
middlePixels = grayImage((grayImage >= 100) & (grayImage <= 200));
brightPixels = grayImage(grayImage > 200));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!