|
|
|||||||||||||||||||
|
This interactive tutorial demonstrates that a color image is a stack of three grayscale intensity maps (Red, Green, Blue). You will see how channels are separated, how a single pixel is represented as RGB/HEX/Binary data, and how filters, color balance, and channel mapping are applied mathematically. Sections Learning objectives
Pixel data: RGB, HEX, and BinaryEach pixel is four bytes: R, G, B, and Alpha (0–255). The same color can be expressed as RGB (e.g. Mathematical filtersUse the Filter dropdown to apply a per-pixel transformation. Filters are linear combinations or simple functions of R, G, B. The headline example is the luminance (grayscale) weighting, which reflects human eye sensitivity — green contributes most: gray = 0.299·R + 0.587·G + 0.114·B
Color balance (channel gain)Balancing is a multiplication (gain) per channel. If a slider value is k (e.g. 0 to 2), the new value is Channel mixer (false color)Channel mapping re-routes source data to output channels. For example, mapping Blue source → Red output, Green → Green, Red → Blue gives the BGR order (common in OpenCV). Mapping Green→R, Blue→G, Red→B can simulate an "infrared look" or vegetation reflection. This shows that data (the numbers) is separate from representation (which channel we display it in)—the basis of false-color imagery in science and art. SimulationThe interactive simulator is below. Use the controls to explore the concepts described above. Image input
Channel toggle
Filters
No filter applied.
Color balance
1.00x
1.00x
1.00x
Channel mixer
Original image
Color statistics
Channel view
Red
Green
Blue
Color space projections
A 3D interactive cube (Three.js) that plots the image’s pixels in RGB vs HSV space to visualize why color-based segmentation works better in HSV. Pipeline & maths (realtime)
Usage instructionsFollow these steps to explore Image Color Separation (RGB):
Tip: Start with the default image and toggle channels off to see R+G (yellow), R+B (magenta), G+B (cyan). Apply Grayscale to see the luminance formula in action.
Parameters
Key concepts
Limitations
|
|||||||||||||||||||