A digital image is a grid of pixels. Each pixel stores a color value. To a computer, an image is a 3D array of numbers — height × width × channels. Everything a computer vision model learns comes from patterns in those numbers.
One channel — brightness only. Values 0 (black) to 255 (white). Shape: [Height, Width]. Used when color doesn't matter or to reduce compute. Common in medical and document imaging.
Three channels — Red, Green, Blue. Each 0–255. Combined they produce the full color spectrum. Shape: [Height, Width, 3]. Standard input format for most CV models. A 224×224 RGB image is a tensor of 150,528 numbers.
Resolution — Width × height in pixels. More pixels = more detail = more compute. Neural networks resize all inputs to a fixed resolution (commonly 224×224) before processing.
Normalization to [0, 1] — Divide all pixel values by 255. Prevents large numbers from destabilizing training. Applied consistently at both training and inference time.
Standardization — Subtract the channel mean and divide by the channel standard deviation (computed over the training set). Centers data around zero for more stable gradient flow.
Ask the AI assistant about pixels, RGB channels, image tensor shapes, or how normalization affects training.