Method
__init__
(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
Tested by
no test coverage detected