MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/spatial/array.py:792–810  ·  view source on GitHub ↗
(
        self,
        spatial_size: Sequence[int] | int,
        size_mode: str = "all",
        mode: str = InterpolateMode.AREA,
        align_corners: bool | None = None,
        anti_aliasing: bool = False,
        anti_aliasing_sigma: Sequence[float] | float | None = None,
        dtype: DtypeLike | torch.dtype = torch.float32,
        lazy: bool = False,
    )

Source from the content-addressed store, hash-verified

790 backend = [TransformBackends.TORCH]
791
792 def __init__(
793 self,
794 spatial_size: Sequence[int] | int,
795 size_mode: str = "all",
796 mode: str = InterpolateMode.AREA,
797 align_corners: bool | None = None,
798 anti_aliasing: bool = False,
799 anti_aliasing_sigma: Sequence[float] | float | None = None,
800 dtype: DtypeLike | torch.dtype = torch.float32,
801 lazy: bool = False,
802 ) -> None:
803 LazyTransform.__init__(self, lazy=lazy)
804 self.size_mode = look_up_option(size_mode, ["all", "longest"])
805 self.spatial_size = spatial_size
806 self.mode = mode
807 self.align_corners = align_corners
808 self.anti_aliasing = anti_aliasing
809 self.anti_aliasing_sigma = anti_aliasing_sigma
810 self.dtype = dtype
811
812 def __call__(
813 self,

Callers

nothing calls this directly

Calls 2

look_up_optionFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected