![]() |
The Census Transformation (ZW94) involves describing the portion of an image around a point using a bit string. For each pixel in the image, the surrounding area, of fixed size and shape, is systematically analyzed, and each pixel in this area is compared to the generating pixel. If the pixel has a greater gray intensity, it is assigned a bit 1, while if it has a lower intensity, it is assigned a bit 0:
| (6.3) |
By systematically scanning the area, it is possible to generate a binary string. An example of the Census transformation of an area is shown in Figure 6.4: from this area, a binary string of 25-1 bits is generated (the central pixel is effectively negligible).
The Census transformation demonstrates its potential in the case of comparisons: two generic points, instead of being compared through a SAD of the surrounding area, are compared using the Hamming distance between their respective binary strings of the Census transform.
Through the construction of the binary string, leveraging the difference in gray tone, the Census transform is quite invariant to brightness.
Paolo medici