contrast = 30, brightness = 350
what is the suitable unit measurement for contrast and brightness? (for documentation purposes)
contrast = 30, brightness = 350
what is the suitable unit measurement for contrast and brightness? (for documentation purposes)
Those values are not contrast and brightness, although they can be used to adjust contrast and brightness. The documentation calls then alpha
and beta
. What that statement says is "take the range of pixel values in my image, and remap then linearly so that the lowest value is now 30 and the highest value is 350". If your pixels spanned from 20 to 60 before, this would expand the contrast by using more pixel values. The conversion would be
new = (old-20) * (350-30) / (60-20) + 30