MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / Brightness

Function Brightness

PATH/core/data/transforms/pedattr_transforms.py:179–181  ·  view source on GitHub ↗
(img, v)

Source from the content-addressed store, hash-verified

177
178
179def Brightness(img, v): # [0.1,1.9]
180 assert 0.1 <= v <= 1.9
181 return PIL.ImageEnhance.Brightness(img).enhance(v)
182
183
184def Sharpness(img, v): # [0.1,1.9]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected