AutoContrast
classkeras_cv.layers.AutoContrast(value_range, **kwargs)
Performs the AutoContrast operation on an image.
Auto contrast stretches the values of an image across the entire available
value_range
. This makes differences between pixels more obvious. An
example of this is if an image only has values [0, 1]
out of the range
[0, 255]
, auto contrast will change the 1
values to be 255
.
Arguments
[0, 1]
or [0, 255]
depending
on how your preprocessing pipeline is set up.