pub fn random_rotation(
image: &Tensor,
max_degrees: f32,
seed: u64,
) -> Result<Tensor, ImgProcError>Expand description
Random rotation augmentation.
Rotate image by a random angle in [-max_degrees, max_degrees].
Uses bilinear interpolation. Pixels outside the image are filled with 0.