irtk.transform.translate2D¶
- irtk.transform.translate2D(t_vec: List[float] | torch.Tensor) torch.Tensor ¶
Create a 2D translation matrix.
- Parameters:
t_vec (Union[List[float], torch.Tensor]) – The 2D translation vector.
- Returns:
A 3x3 2D translation matrix.
- Return type:
torch.Tensor