(
self,
keys: KeysCollection,
angle: Sequence[float] | float,
keep_size: bool = True,
mode: SequenceStr = GridSampleMode.BILINEAR,
padding_mode: SequenceStr = GridSamplePadMode.BORDER,
align_corners: Sequence[bool] | bool = False,
dtype: Sequence[DtypeLike | torch.dtype] | DtypeLike | torch.dtype = np.float32,
allow_missing_keys: bool = False,
lazy: bool = False,
)
| 1757 | backend = Rotate.backend |
| 1758 | |
| 1759 | def __init__( |
| 1760 | self, |
| 1761 | keys: KeysCollection, |
| 1762 | angle: Sequence[float] | float, |
| 1763 | keep_size: bool = True, |
| 1764 | mode: SequenceStr = GridSampleMode.BILINEAR, |
| 1765 | padding_mode: SequenceStr = GridSamplePadMode.BORDER, |
| 1766 | align_corners: Sequence[bool] | bool = False, |
| 1767 | dtype: Sequence[DtypeLike | torch.dtype] | DtypeLike | torch.dtype = np.float32, |
| 1768 | allow_missing_keys: bool = False, |
| 1769 | lazy: bool = False, |
| 1770 | ) -> None: |
| 1771 | MapTransform.__init__(self, keys, allow_missing_keys) |
| 1772 | LazyTransform.__init__(self, lazy=lazy) |
| 1773 | self.rotator = Rotate(angle=angle, keep_size=keep_size, lazy=lazy) |
| 1774 | |
| 1775 | self.mode = ensure_tuple_rep(mode, len(self.keys)) |
| 1776 | self.padding_mode = ensure_tuple_rep(padding_mode, len(self.keys)) |
| 1777 | self.align_corners = ensure_tuple_rep(align_corners, len(self.keys)) |
| 1778 | self.dtype = ensure_tuple_rep(dtype, len(self.keys)) |
| 1779 | |
| 1780 | @LazyTransform.lazy.setter # type: ignore |
| 1781 | def lazy(self, val: bool): |
nothing calls this directly
no test coverage detected