Apply the transform on an image. Args: img (ndarray): of shape NxHxWxC, or HxWxC or HxW. The array can be of type uint8 in range [0, 255], or floating point in range [0, 1] or [0, 255]. Returns: ndarray: image after ap
(self, img: np.ndarray)
| 61 | |
| 62 | @abstractmethod |
| 63 | def apply_image(self, img: np.ndarray): |
| 64 | """ |
| 65 | Apply the transform on an image. |
| 66 | |
| 67 | Args: |
| 68 | img (ndarray): of shape NxHxWxC, or HxWxC or HxW. The array can be |
| 69 | of type uint8 in range [0, 255], or floating point in range |
| 70 | [0, 1] or [0, 255]. |
| 71 | Returns: |
| 72 | ndarray: image after apply the transformation. |
| 73 | """ |
| 74 | |
| 75 | @abstractmethod |
| 76 | def apply_coords(self, coords: np.ndarray): |
no outgoing calls
no test coverage detected