Image processing matrix image rotation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 9K views
billybob5588
Messages
21
Reaction score
0

Homework Statement



image processing

I would like to rotate an m*n image matrix by any input degree, simplest cases 90, 180 and 270 on MATLAB without using any of the built in functions i.e. purely mathematical


Homework Equations





The Attempt at a Solution



\left[ \begin{matrix} cos\left(\theta \right) & sin\left(\theta \right) \\ -sin\left(\theta \right) & cos\left(\theta \right) \end{matrix}\right]

is the rotation matrix , how would i apply this to a general case for a m*n matrix?
 
Physics news on Phys.org
[tex]\left[ \begin{matrix} cos\left(\theta \right) & sin\left(\theta \right) \\ -sin\left(\theta \right) & cos\left(\theta \right) \end{matrix}\right][/tex]