irtk.transform.scale2D

irtk.transform.scale2D(size: float | List[float] | torch.Tensor) torch.Tensor

Create a 2D scaling matrix.

Parameters:

size (Union[float, List[float], torch.Tensor]) – The scaling factor(s).

Returns:

A 3x3 2D scaling matrix.

Return type:

torch.Tensor