예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public static float GetPixelFeaturesMono(FastPixelHSV testPx)
 {
     return(testPx.GetMonochrome() / 255.0f);
 }