Fuzzy Logic-based methods
The classification of a colour is not a simple task, mainly because it is a subjective process. On this page we present the four main methods for colour segmentation based on fuzzy sets.
Last updated
The classification of a colour is not a simple task, mainly because it is a subjective process. On this page we present the four main methods for colour segmentation based on fuzzy sets.
Last updated
Traditionally, logic has been based on binary statements, with no need for further specification. However, many everyday situations require a greater degree of detail; for example, determining whether a person is tall or short, whether a process is efficient or not, or, specifically, whether a colour is red, orange or yellow. Because of the subjectivity of these processes, fuzzy logic is a good framework for modelling uncertainty.
Given a collection , the fuzzy set associated to is the collection of pairs , where is the membership function. For brevity, since the fuzzy set is uniquely determined by its membership function, we denote the fuzzy set by . Of all the membership functions in the literature, the most important are:
Triangular functions. They are defined by a lower limit , an upper limit and a value which satisfies . Its expression is given by:
As shown, color grading is a very subjective process. Therefore, the concepts of fuzzy sets will be applied for segmentation.
Due to the separation of the chromatic component, the implemented methods are based on the HSV colour space. The H component concentrates the pure colour, while the S and V components represent, respectively, the saturation and the level of white present in that colour. In this module, each color will represent a fuzzy set, so that using its associated membership function over the H channel the degree of chromaticism can be studied. Currently, there are four methods based on fuzzy sets:
Amante-Fonseca, using fuzzy trapezoidal membership functions.
Chamorro-Martínez, using fuzzy trapezoidal membership functions.
Liu-Wang, using fuzzy trapezoidal membership functions.
Shamir, using fuzzy triangular membership functions.
The difference between each of the methods is the colour palette they define, and their membership functions. The overall process can be summarised in the following diagram.
The method for determining whether a colour is chromatic or not from its S and V components is defined in Amante-Fonseca.
Trapezoidal functions. They are defined by a lower limit and an upper limit , and a lower support limit and an upper support limit . The three parameters satisfy . Its expression is given by:
Gaussian functions. They are defined by a central value and a standard deviation . When goes smaller, the narrower the bell is. Its expression is given by: