MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / transform

Function transform

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

Source from the content-addressed store, hash-verified

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

Callers 2

rotateFunction · 0.85
test_consistencyFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_consistencyFunction · 0.68