MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / random_gaussian_blur

Function random_gaussian_blur

utils/transforms.py:157–163  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

155
156
157def random_gaussian_blur(img):
158 gauss_size = random.choice([1, 3, 5, 7])
159 if gauss_size > 1:
160 # do the gaussian blur
161 img = cv2.GaussianBlur(img, (gauss_size, gauss_size), 0)
162
163 return img
164
165
166def center_crop(img, shape):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected