The Math Behind the Pixels: Linear Algebra & Statistics in Computer Vision
like [255, 0, 0] for pure red in an RGB image.
A 512×512 image is a 512×512 matrix. Operations like blurring, sharpening,
or edge detection.
�
�
How RGB values are packed into a single integer and then unpacked again.
𝑟= red component (0–255)
𝑔 = green component (0–255)
𝑏 = blue component (0–255)
𝑣 = the single integer representation
Note: 65536=256 * 256
256 is the range of each color channel
But why red is multuplied with 256 squared and green by 256 and blue by nothing
Introduction to Mathematical Transformations
Scaling Transformation
Rotation Transformation
Shear Transformation
Shear is a somewhat less commonly used transformation that moves points parallel to an axis. Shearing terms arise in the off-diagonal elements of matrices.