
How computers perceive images
2026-03-13
How computers store images
0 to 255.(0,0) is top-left.0 is black and 1 is white.0 (dark) to 255 (bright).
numpy multi-dimensional arrays (tensors).uint8 vs Floatsuint8), meaning values range from 0 to 255.0 is Black. 255 is White (in grayscale) or full intensity (in RGB).0-255 to floats between 0.0 and 1.0 by dividing by 255.0.(x, y) = (width, height).matrix[row, col] = matrix[y, x].(x1, y1, x2, y2).cv2.imread() and plot it directly in matplotlib, Red and Blue channels are swapped!(Width × Height).640x640).Wrapping up Image Foundations
Next up: YOLO Inference
Thank You!
Any questions?