ColorGlove.Filter.PerPixelClassificationOnEnable C# (CSharp) Method

PerPixelClassificationOnEnable() public static method

public static PerPixelClassificationOnEnable ( ProcessorState state ) : void
state ProcessorState
return void
        public static void PerPixelClassificationOnEnable(ProcessorState state)
        {
            if (state.predict_on_enable_.Value == false) return;
            AdjustDepth(state);
            PredictGPU(state);
            DrawPredictionOverlay(state);
            //Pooled gesture = Pool(PoolType.MedianMajority, state);
            /*
            List<Pooled> gestures = Pool(PoolType.KMeans, state);            
            //DrawPredictionOverlay(state);
            //List<Pooled> gestures = Pool(PoolType.MedianMajority, state);
            //List<Pooled> gestures = Pool(PoolType.KMeans, state);
            List<Pooled> gestures = Pool(PoolType.DBSCAN, state);

            foreach (var gesture in gestures)
            {
                DrawCrosshairAt(gesture, state);
            //    SendToSockets(gesture, state);
            }
            */
            //DBSCAN.Test();

            state.predict_on_enable_.Value = false;
        }