Note
Go to the end to download the full example code.
Transform videoΒΆ
In this example, we use torchio.Resample((2, 2, 1))
to divide the spatial
size of the clip (height and width) by two and
RandomAffine(degrees=(0, 0, 20))
to rotate a maximum of 20 degrees around
the time axis.