(max(R, G, B) + min(R, G, B)) / 2.
0.21 R + 0.72 G + 0.07 B.
Thresholding an image is the process of making all pixels above a certain threshold level white, others black.
●Convert to greyscale
●Grayscale = (R+G+B)/3
●// 0.21 R + 0.72 G + 0.07 B.
●If (Grayscale > thresholdValue)
●Image = 1
●Else
●Image = 0
new_value = old_value + brightness
●Refers to the amount of color or grayscale differentiation that exists between various image features in both analog and digital images.
●Images having a higher contrast level generally display a greater degree of color or grayscale variation than those of lower contrast.
new_value = (old_value - 0.5) × contrast + 0.5
Inverting the sample values in the image, produces the same image that would be found in a film negative.
new_value = 1 - old_value
new_value=old_value1.0-gamma.