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

Method __init__

projects/Datasets/Transforms/transform.py:98–104  ·  view source on GitHub ↗

output_size:(w, h)

(self, src, dst, output_size, border_value=[0, 0, 0])

Source from the content-addressed store, hash-verified

96 """
97
98 def __init__(self, src, dst, output_size, border_value=[0, 0, 0]):
99 """
100 output_size:(w, h)
101 """
102 super().__init__()
103 affine = cv2.getAffineTransform(np.float32(src), np.float32(dst))
104 self._set_attributes(locals())
105
106 def apply_image(self, img: np.ndarray) -> np.ndarray:
107 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected