Image Channels and Their Order
A multi-channel image stores several values per sample, with meanings assigned by the pixel format and component order.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace a colored pixel
A sample written (255,0,0) describes full red under ordinary eight-bit RGB ordering, and full blue if interpreted under BGR ordering. Reading a structured field explains why a position has meaning beyond its value.
Use a distinguishing fixture
Neutral samples with equal channels do not reveal a swap. Choose a pixel with distinct components and verify its displayed interpretation. Tests with separating values guide that choice.[1][2]