Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

685 B
Raw Blame

kornia.geometry.transform.rotate and scale, and the Affine, Rotate and Scale modules, build their default center in the dtype of the angle or scale factor, so leaving center out gives the same result as passing the image center in that dtype. With parameters in a narrower floating dtype than the image, such as float32 parameters and a float64 image, they used to raise ValueError ("Inputs must have same dtype") unless center was passed; they now warp in the image dtype, as warp_affine does. Parameters that warp_affine rejects for the image, such as float64 parameters with a float32 image, still raise, now with its RuntimeError, as with an explicit center.