The last formula has an error because is without -1, namely:
yellowness= S*max(( cos(u)-cos(a))/(1-cos(a)) ,0)
References:
1. Vasile Patrascu, New Framework of HSL System Based Color Clustering Algorithm,
The 8th Conference of the European Society for Fuzzy Logic and Technology (EUSFLAT 2013), pp. 416-423.
2. Vasile Patrascu, New Fuzzy Color Clustering Algorithm Based on hsl Similarity, Proceedings of the Joint 2009 International Fuzzy Systems Association World Congress and 2009 European Society of Fuzzy Logic and Technology Conference, Lisbon, Portugal, July 20-24, 2009, pp. 48-52
3. V. Patrascu, Fuzzy Image Segmentation Based on Triangular Function and Its n-dimensional Extension, in the volume Soft Computing in Image Processing. Recent Advances, Series: Studies in Fuzziness and Soft Computing , pp 187-208, Vol. 210 , (Eds.) Nachtegael, M.; Van der Weken, D.; Kerre, E.E.; Philips, W. 2007
In general there is no just a single value to represent any color. It is a range of values. I assume that you want to make segmentation. In this case the value of the rgb you get in your image depends on the incident light and the property of the surface. If we assume white light then you need to use some color space conversion which can help you to simplify the problem and can make the segmentation easy. I think that hsv colour space is good enough for this task but specific the colour range or you can use a clustering method suc as SOM to do this job for you.
I just want to come out with a metric that could signify the intensity of yellow coloration. The context here is , the exudate intensity in fovia. The project work is related to damage quantification in retinal images( diabetic retinopathy).
Function ArcTan2(X As Double, Y As Double) As Double Private Const PI As Double = 3.14159265358979 Private Const PI_2 As Double = 1.5707963267949 Select Case X Case Is > 0 ArcTan2 = Atn(Y / X) Case Is < 0 ArcTan2 = Atn(Y / X) + PI * Sgn(Y) If Y = 0 Then ArcTan2 = ArcTan2 + PI Case Is = 0 ArcTan2 = PI_2 * Sgn(Y) End Select End Function
Thank you. I just need some quantification for yellow. The formulations you have given seem to augur well for my work. Kindly get me the reference , which I should quote, when I happen to present the research paper.
The last formula has an error because is without -1, namely:
yellowness= S*max(( cos(u)-cos(a))/(1-cos(a)) ,0)
References:
1. Vasile Patrascu, New Framework of HSL System Based Color Clustering Algorithm,
The 8th Conference of the European Society for Fuzzy Logic and Technology (EUSFLAT 2013), pp. 416-423.
2. Vasile Patrascu, New Fuzzy Color Clustering Algorithm Based on hsl Similarity, Proceedings of the Joint 2009 International Fuzzy Systems Association World Congress and 2009 European Society of Fuzzy Logic and Technology Conference, Lisbon, Portugal, July 20-24, 2009, pp. 48-52
3. V. Patrascu, Fuzzy Image Segmentation Based on Triangular Function and Its n-dimensional Extension, in the volume Soft Computing in Image Processing. Recent Advances, Series: Studies in Fuzziness and Soft Computing , pp 187-208, Vol. 210 , (Eds.) Nachtegael, M.; Van der Weken, D.; Kerre, E.E.; Philips, W. 2007