Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HobbitLong/PyContrast
/ transform
Function
transform
pycontrast/datasets/RandAugment.py:95–97 ·
view source on GitHub ↗
(x, y, matrix)
Source
from the content-addressed store, hash-verified
93
]
94
95
def
transform(x, y, matrix):
96
(a, b, c, d, e, f) = matrix
97
return
a * x + b * y + c, d * x + e * y + f
98
99
matrix[2], matrix[5] = transform(
100
-rotn_center[0] - post_trans[0], -rotn_center[1] - post_trans[1], matrix
Callers
1
rotate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected