Androutsos et al. give the Czenakowski coefficient as follows:[1]
Where a pixel is being compared to a pixel on the k-th band of color – usually one for each of red, green and blue.
For a pixel matrix of size , the Czenakowski coefficient can be used in an arithmetic mean spanning all pixels to calculate the Czenakowski distance as follows:[2][3]
Where is the (i, j)-th pixel of the k-th band of a color image and, similarly, is the pixel that it is being compared to.