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); }
public static float GetPixelFeaturesHueMono(FastPixelHSV testPx) { const int hueSteps = 16; const int monoSteps = 16; const float monoScale = 1.0f / monoSteps; const float hueScale = monoScale / hueSteps; int hueV = testPx.GetHue() / (360 / hueSteps); int monoV = testPx.GetMonochrome() / (256 / monoSteps); float pixelV = (hueV * hueScale) + (monoV * monoScale); return(pixelV); }
public static float GetPixelFeaturesMono(FastPixelHSV testPx) { return(testPx.GetMonochrome() / 255.0f); }