MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / transform

Function transform

slowfast/datasets/rand_augment.py:128–130  ·  view source on GitHub ↗
(x, y, matrix)

Source from the content-addressed store, hash-verified

126 ]
127
128 def transform(x, y, matrix):
129 (a, b, c, d, e, f) = matrix
130 return a * x + b * y + c, d * x + e * y + f
131
132 matrix[2], matrix[5] = transform(
133 -rotn_center[0] - post_trans[0],

Callers 1

rotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected