SetVision.Learning.BgrClassifier.Classify_Vision C# (CSharp) Method

Classify_Vision() private method

private Classify_Vision ( Bgr value ) : VisionColor
value Bgr
return VisionColor
        private VisionColor Classify_Vision(Bgr value)
        {
            float[] array = new float[] { (float)value.Blue, (float)value.Green, (float)value.Red };
            //CardColor outcome = (CardColor)kmeans.Classify(array);
            string colname = kmeans.ClassifyToString(array);

            VisionColor color = (VisionColor)Enum.Parse(typeof(VisionColor), colname, true);

            return color;
        }