Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 14 Juil 2014
Modifié(e) : Elysi Cochin le 15 Juil 2014
how to split a gray image into dark, middle and bright pixels

Réponse acceptée

Image Analyst
Image Analyst le 14 Juil 2014
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 commentaires
Elysi Cochin
Elysi Cochin le 14 Juil 2014
can you tell any simple method...
Image Analyst
Image Analyst le 14 Juil 2014
Simple method is thresholding
darkPixels = grayImage(grayImage < 100));
middlePixels = grayImage((grayImage >= 100) & (grayImage <= 200));
brightPixels = grayImage(grayImage > 200));

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by