Tolerance Values

The color range you specify includes a low tolerance, a high tolerance, and a fuzzy tolerance for pixel values in each axis of the color space. You can specify these values yourself, you can use the average pixel value for the feature of interest, or you can use the cfGetColorRangeFromImage() functions defined in ch_cvl/coltool.h to compute them automatically, based on a histogram analysis of the image or image region that you supply.

In most cases, as shown in Segmentation with one color range, the histogram-based tolerances provide good results.

Segmentation tolerance values