Method
__init__
(
self,
roi_scale: Sequence[float] | float,
max_roi_scale: Sequence[float] | float | None = None,
random_center: bool = True,
random_size: bool = False,
lazy: bool = False,
)
Source from the content-addressed store, hash-verified
| 654 | """ |
| 655 | |
| 656 | def __init__( |
| 657 | self, |
| 658 | roi_scale: Sequence[float] | float, |
| 659 | max_roi_scale: Sequence[float] | float | None = None, |
| 660 | random_center: bool = True, |
| 661 | random_size: bool = False, |
| 662 | lazy: bool = False, |
| 663 | ) -> None: |
| 664 | super().__init__( |
| 665 | roi_size=-1, max_roi_size=None, random_center=random_center, random_size=random_size, lazy=lazy |
| 666 | ) |
| 667 | self.roi_scale = roi_scale |
| 668 | self.max_roi_scale = max_roi_scale |
| 669 | |
| 670 | def get_max_roi_size(self, img_size): |
| 671 | ndim = len(img_size) |
Callers
nothing calls this directly
Tested by
no test coverage detected