MCPcopy Create free account
hub / github.com/HYUNJS/SGT / __init__

Method __init__

projects/Datasets/Transforms/transform.py:153–155  ·  view source on GitHub ↗
(self, width, height, border_value, M, a)

Source from the content-addressed store, hash-verified

151 Affine Transformation from FairMOT official repository
152 """
153 def __init__(self, width, height, border_value, M, a):
154 super().__init__()
155 self._set_attributes(locals())
156
157 def apply_image(self, img: np.ndarray) -> np.ndarray:
158 return cv2.warpPerspective(img, self.M, dsize=(self.width, self.height), flags=cv2.INTER_LINEAR, borderValue=self.border_value) # BGR order borderValue

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected