Census transform

Example of census transform

A synthetic scene

Grayscale conversion followed by census transform

The census transform (CT) is an image operator that associates to each pixel of a grayscale image a binary string, encoding whether the pixel has smaller intensity than each of its neighbours, one for each bit. It is a non-parametric transform that depends only on relative ordering of intensities, and not on the actual values of intensity, making it invariant with respect to monotonic variations of illumination, and it behaves well in presence of multimodal distributions of intensity, e.g. along object boundaries.[1] It has applications in computer vision, and it is commonly used in visual correspondence problems such as optical flow calculation and disparity estimation.[2]

The census transform is related to the rank transform, that associates to each pixel the number of neighbouring pixels with higher intensity than the pixel itself, and was introduced in the same paper.[3]

## Algorithm

The most common version of the census transform uses a 3x3 window, comparing each pixel p with all its 8-connected neighbours with a function ξ defined as

ξ(p,p′)={0if p>p′1if p≤p′.

The results of these comparisons are concatenated and the value of the transform is an 8-bit value, that can be easily encoded in a byte.

1247432124641815711684⟶1101x0111⟶11010111

Similarity between images is determined by comparing the values of the census transform for corresponding pixels, using the Hamming distance.[3] Several variations of the algorithm exist, using different size of the window, order of the neighbours in the pattern (row-wise, clockwise, counterclockwise), comparison operator (greater, greater or equal, lesser, lesser or equal).[4]

An extension of the algorithm uses a three-way comparison that allows to represent similar pixels, whose intensity difference is smaller than a tolerance parameter ϵ, defined as[5]

ξ(p,p′)={0if p−p′>ϵ1if |p−p′|≤ϵ2if p′−p>ϵ

whose result can be encoded with two bits for each neighbour, thus doubling the size of the pattern for each pixel.

1247432124641815711684⟶2102x0222⟶21020222

## See also

* Local binary patterns

## References

1. ↑ Zabih and Woodfill (1994), p. 152.
2. ↑ Hafner et al. (2013).
3. ↑ 3.0 3.1 Zabih and Woodfill (1994), p. 153.
4. ↑ "Census Transform Algorithm Overview". Intel. https://software.intel.com/en-us/sample-census-transform-census-transform-algorithm-overview.
5. ↑ Stein (2004).

* Hafner, David; Demetz, Oliver; Weickert, Joachim (2013). "Why is the census transform good for robust optic flow computation?". pp. 210–221. https://www.mia.uni-saarland.de/Publications/hafner-ssvm13.pdf.
* Stein, Fridtjof (2004). "Efficient computation of optical flow using the census transform". pp. 79–86. https://www.researchgate.net/publication/221113496.
* Zabih, Ramin; Woodfill, John (1994). "Non-parametric local transforms for computing visual correspondence". pp. 151–158. http://www.cs.duke.edu/courses/spring06/cps296.1/handouts/Zabih Woodfill 1994.pdf.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Census transform. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Census_transform&oldid=291806"