public Handetector_Threading(KinectSensor kinectSensor, int mode, Boolean isDebug)
 {
     this.kinectSensor = kinectSensor;
     colorList = new List<Color>();
     maskPlayerPos = new List<Int32>();
     dotDetector = new DotDetectorAlgorithm_Counter(detectionColor);
     r = new DotDetector_ResultObject();
     this.mode = mode;
     isDebugMode = isDebug;
 }
Beispiel #2
0
 public HandDotDetector(KinectSensor k, Boolean _isDebug)
 {
     this.kinectSensor = k;
     results = new DotDetector_ResultObject[2];
     results[0] = new DotDetector_ResultObject();
     results[1] = new DotDetector_ResultObject();
     colorList = new List<Color>();
     neededPixels = redDotDetectionArea.Width * redDotDetectionArea.Height;
     this.ready = false;
     mode = 0;
     isDebugMode = _isDebug;
     detector_1 = new Handetector_Threading(kinectSensor, mode, isDebugMode);
     detector_2 = new Handetector_Threading(kinectSensor, mode, isDebugMode);
     this.eventcouterThreshold = 10;
 }
Beispiel #3
0
        public HandDotDetector(Rectangle redDotDetectionArea, KinectSensor k)
        {
            this.kinectSensor = k;
            this.redDotDetectionArea = redDotDetectionArea;
            results = new DotDetector_ResultObject[2];
            results[0] = new DotDetector_ResultObject();
            results[1] = new DotDetector_ResultObject();
            handPositions = new Vector2[2];
            colorList = new List<Color>();
            dotDetector = new DotDetectorAlgorithm_Counter(detectionColor);
            neededPixels = redDotDetectionArea.Width * redDotDetectionArea.Height;
            this.ready = false;

            hand_bolterValue.Add(0, 0);
            hand_bolterValue.Add(1, 0);
           

        }