MCPcopy Create free account
hub / github.com/amazon-science/mm-cot / transform

Function transform

timm/data/auto_augment.py:108–110  ·  view source on GitHub ↗
(x, y, matrix)

Source from the content-addressed store, hash-verified

106 ]
107
108 def transform(x, y, matrix):
109 (a, b, c, d, e, f) = matrix
110 return a * x + b * y + c, d * x + e * y + f
111
112 matrix[2], matrix[5] = transform(
113 -rotn_center[0] - post_trans[0], -rotn_center[1] - post_trans[1], matrix

Callers 2

extract_featuresFunction · 0.85
rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected