how to split a gray image into dark, middle and bright pixels

 Accepted Answer

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 Comments

can you tell any simple method...
Simple method is thresholding
darkPixels = grayImage(grayImage < 100));
middlePixels = grayImage((grayImage >= 100) & (grayImage <= 200));
brightPixels = grayImage(grayImage > 200));

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!