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

Method apply_image

projects/Datasets/Transforms/transform.py:157–158  ·  view source on GitHub ↗
(self, img: np.ndarray)

Source from the content-addressed store, hash-verified

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
159
160 def apply_coords(self, coords: np.ndarray) -> np.ndarray:
161 return coords

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected