The distance between color sets utilizes the walk distance in HSV color space to determine the distance between individual colors. For the 166 colors in the binary color space
a table with entries
is constructed that records the distance between all individual colors. That distance is computed as follows: given two colors corresponding to axes
and
in
retrieve the HSV values through the inverse of vector quantization
. This gives
for i = 0, 1, where
and
. Then the distance between the colors corresponding to
and
is given by
The total distance between two unit length (single color) color sets
and
is given by
The VisualSEEk system currently supports the assignment of a single color (unit length
) to each region in the query. The assignment in the query of multiple colors to each region and the more general formula for distance between any two non-zero color sets has not yet been implemented in the system.