2d transforms Flashcards
(102 cards)
What is the purpose of 2D transformations in visual computing?
To move, rotate, scale, and manipulate image coordinates and shapes efficiently using matrix operations.
What type of transformation preserves distances and angles?
Rigid transformations.
What is an example of a rigid transformation?
Rotation, reflection, or translation.
What are articulated transformations?
Piecewise rigid transformations such as those found in robotic arms.
What are non-rigid transformations?
Transformations that allow stretching and deformation.
What is the general matrix form of a 2D transformation?
p’ = M · p, where M is a 2×2 matrix and p is a 2D point.
What is the matrix for uniform scaling?
[[s, 0], [0, s]]
What is the effect of uniform scaling?
It scales the object equally in both x and y directions.
What is the matrix for non-uniform scaling?
[[a, 0], [0, b]]
What does non-uniform scaling do?
It scales the x and y directions differently.
What is the rotation matrix for angle θ?
[[cosθ, -sinθ], [sinθ, cosθ]]
What does this rotation matrix do?
Rotates points counterclockwise around the origin.
What is the matrix for horizontal shear?
[[1, k], [0, 1]]
What does horizontal shear do?
It shifts x-coordinates based on the y-coordinate.
What is the matrix for vertical shear?
[[1, 0], [k, 1]]