Skip to main content

Table 3 Color image segmentation algorithm

From: Color sensors and their applications based on real-time color image segmentation for cyber physical systems

Algorithm 1: Segmentation algorithm
1. R i = Read(ColorsImage)
2. B i = RGBColorSpace()
3. D i = Determined(DominantColors)
4. C i = Calculate(ColorSimilarity)
5. G i = Calculate(Brightness)
6. P i = Devide(Pixels)
7. O i = Output(ImageResults)
8. end