The mean gray value of an image or object within an image can be determined as a measure of brightness. Color values of the pixels can be converted to corresponding gray values. Black has the lowest intensity and white the highest.
Gray value determination with image processing
![](https://www.medealab.de/wp-content/uploads/2019/07/Messparameter_Grauwert-e1563271231662.png)