MCPcopy Create free account
hub / github.com/Sense-GVT/DeCLIP / AdjustGamma

Class AdjustGamma

prototype/data/transforms.py:21–29  ·  view source on GitHub ↗

Perform gamma correction on an image.

Source from the content-addressed store, hash-verified

19
20
21class AdjustGamma(object):
22 """Perform gamma correction on an image."""
23
24 def __init__(self, gamma, gain=1):
25 self.gamma = gamma
26 self.gain = gain
27
28 def __call__(self, img):
29 return TF.adjust_gamma(img, self.gamma, self.gain)
30
31
32class TwoCropsTransform:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected