MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / shear_x

Function shear_x

pycontrast/datasets/RandAugment.py:45–47  ·  view source on GitHub ↗
(img, factor, **kwargs)

Source from the content-addressed store, hash-verified

43
44
45def shear_x(img, factor, **kwargs):
46 _check_args_tf(kwargs)
47 return img.transform(img.size, Image.AFFINE, (1, factor, 0, 0, 1, 0), **kwargs)
48
49
50def shear_y(img, factor, **kwargs):

Callers

nothing calls this directly

Calls 1

_check_args_tfFunction · 0.85

Tested by

no test coverage detected