Matricies Flashcards
When can two matrices be added together?
They can only be added of they are of exactly the same size
What happens when multiplying a matrix by a single whole number?
Multiply each element by the whole number
When can two matrices be multiplied together?
When the number of columns in the first matches the number of rows in the second.
How do we multiply matricies?
Take all elements from top row of the first, multiply them by all the elements in first column of second and add together. This becomes the element in the top left of the matrix. Then take the same elements from the first, but the second column of the second. This becomes the second element on the top row of the new matrix. Repeat until all elements have been multiplied and added.
How can translation be done with matricies?
An addition of two
How can scaling be expressed with matricies?
Multiplication:
Sx 0 ) * (x) = (Sx x
(0 Sy) (y) (Sy y)
How can rotation be done with matricies?
Multiplication:
cos(alpha) -sin(alpha) ) * (x) = (work it out
( sin(alpha) cos(alpha) ) (y)
How can we make image manipulation more efficient?
If we want to rotate and scale at the same time, we should multiply the two matrices then the image matrix, rather than one after the other.