= Bit plane
A \b[bit plane] collects one fixed bit position from every integer sample of a <digital image>. For an unsigned $n$-bit sample $p$, define its plane-$k$ entry by
$$
b_k=\left\lfloor\frac{p}{2^k}\right\rfloor\bmod2,\qquad
p=\sum_{k=0}^{n-1}2^kb_k.
$$
Each <bit plane> contains binary entries, while the powers of two determine their contribution to reconstruction. The Linux frame-buffer API uses this organization for `FB_TYPE_PLANES`, where plane $k$ stores bit $k$ of the pixel samples.<The Frame Buffer Device API in the Linux Kernel documentation>[§2, FB_TYPE_PLANES and FB_TYPE_INTERLEAVED_PLANES]{ref}
For an original four-pixel row $(3,5,10,12)$ stored as four-bit unsigned samples, the <bit planes> from most significant to least significant are
$$
b_3=(0,0,1,1),\quad b_2=(0,1,0,1),\quad
b_1=(1,0,1,0),\quad b_0=(1,1,0,0).
$$
The third pixel reconstructs as $8\cdot1+4\cdot0+2\cdot1+1\cdot0=10$. The same operation applies independently to every location in an image; <bit-plane slicing> extracts those binary images for inspection or processing.
If only the two most significant <bit planes> are retained, this row reconstructs as $(0,4,8,12)$. In general that truncation gives $4\lfloor p/4\rfloor$, so the discarded remainder lies between zero and three. This is a statement about integer code values; a nonlinear <color space> can make equal code changes correspond to unequal light changes.
A <bit plane> differs from a <component plane>. One eight-bit red <component plane> can itself be decomposed into eight <bit planes>. State the component encoding, bit significance and layout before combining planes; the visible binary pattern alone does not identify its significance. Bit planes need not form a progression from smooth shapes to noise for arbitrary images.
Back to article page