CPC G06T 7/0002 (2013.01) [G06N 5/04 (2013.01); G06N 7/01 (2023.01); G06V 10/764 (2022.01); G06V 10/82 (2022.01); G06T 2207/20076 (2013.01); G06T 2207/20081 (2013.01); G06T 2207/30168 (2013.01)] | 14 Claims |
1. A method of classifying a contrast level of an image, the method comprising:
obtaining an image from an image source;
extracting intensity values for each pixel of the obtained image;
calculating a probability distribution for the obtained image representing a number of pixels at each unique pixel value;
determining, from the calculated probability distribution, a spread value representing a series pixel values including at least a predetermined number of pixels at each pixel value in the series of pixel values;
classifying the obtained image into a member of one of three classes by
predicting, via a trained machine learning model having been trained using the calculated probability distribution and the determined spread value to predict which of the three classes the image belongs,
generating, for each of the three classes, a likelihood value representing a likelihood that the obtained image belongs in that class and,
classifying the obtained image into the one of the three classes based on the likelihood value meeting a predetermined threshold associated with the one of the three classes.
|