MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / RandomGaussianBlur

Class RandomGaussianBlur

utils/transforms.py:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class RandomGaussianBlur(object):
48 def __call__(self, img):
49 sigma = 0.15 + random.random() * 1.15
50 blurred_img = gaussian(np.array(img), sigma=sigma, multichannel=True)
51 blurred_img *= 255
52 return Image.fromarray(blurred_img.astype(np.uint8))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected