irtk.transform.scale¶
- irtk.transform.scale(size: float | List[float] | torch.Tensor) torch.Tensor ¶
Create a scaling matrix.
- Parameters:
size (Union[float, List[float], torch.Tensor]) – The scaling factor(s).
- Returns:
A 4x4 scaling matrix.
- Return type:
torch.Tensor