How can we calculate the brightness, contract, hue and saturation numbers in an image using java programming. Any formula, code snippet appreciated.
You can use HSV model to calculate the values, where H is Hue, S is saturation and V is value( or brightness)
Here RGB are the Red, Green and Blue value of pixel which I am assuming you are able to read with help of some image processing library.