- Is it possible to make 2D image rotation using matrix multiplication?
- How do you find a 2D rotation matrix?
Is it possible to make 2D image rotation using matrix multiplication?
If you turn it into a vector in R(MN) and create a matrix which is (MN)×(MN) by multiplication and rearranging the vector from the multiplication result you can reposition any pixels where ever you want.
How do you find a 2D rotation matrix?
To find the rotation of a vector we simply multiply the required rotation matrix with the coordinates of the given vector. In 2D space, this is given by ⎡⎢⎣x′y′⎤⎥⎦ [ x ′ y ′ ] = ⎡⎢⎣cosθ−sinθsinθcosθ⎤⎥⎦ [ c o s θ − s i n θ s i n θ c o s θ ] ⎡⎢⎣xy⎤⎥⎦ [ x y ] .