public static Color GetColorFromHSV(FastPixelHSV pixel) { int R = 0, G = 0, B = 0; HsvToRgb(pixel.GetHue(), pixel.GetSaturation() / 100.0, pixel.GetValue() / 100.0, out R, out G, out B); return(Color.FromArgb(R, G, B)); }
public static float GetPixelFeaturesM2V2(FastPixelHSV testPx) { float monoV = testPx.GetMonochrome() / 255.0f; float valV = testPx.GetValue() / 100.0f; float pixelV = monoV * monoV * valV * valV; return(pixelV); }