MCPcopy Create free account
hub / github.com/geekcomputers/Python / shear_y

Method shear_y

ML/src/python/neuralforge/data/augmentation.py:81–82  ·  view source on GitHub ↗
(img, magnitude)

Source from the content-addressed store, hash-verified

79
80 @staticmethod
81 def shear_y(img, magnitude):
82 return img.transform(img.size, Image.AFFINE, (1, 0, 0, magnitude, 1, 0))
83
84 @staticmethod
85 def translate_x(img, magnitude):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected