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

Method get_default_affine

monai/data/meta_tensor.py:346–347  ·  view source on GitHub ↗
(dtype=torch.float64)

Source from the content-addressed store, hash-verified

344
345 @staticmethod
346 def get_default_affine(dtype=torch.float64) -> torch.Tensor:
347 return torch.eye(4, device=torch.device("cpu"), dtype=dtype)
348
349 def as_tensor(self) -> torch.Tensor:
350 """

Callers 4

__init__Method · 0.95
affineMethod · 0.95
track_transform_metaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected