private VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, VideoTargetType targetType)
        {
            _decider = decider;
            TargetType = targetType;
            ID = id;

            // prepare some items to help drawing the object on Image:
            this.imgWidth = _decider.imgWidth;
            this.imgHeight = _decider.imgHeight;
            switch (targetType)
            {
                case VideoTargetType.ColorBlob:
                    drawingRectangeColor = new Bgr(64.0, 64.0, 255.0);
                    drawingRectangeColorMain = new Bgr(32.0, 32.0, 255.0);
                    drawingLabelColor = new Bgr(255.0, 255.0, 128.0);
                    break;

                case VideoTargetType.SurveillanceBlob:
                    drawingRectangeColor = new Bgr(64.0, 255.0, 64.0);
                    drawingRectangeColorMain = new Bgr(32.0, 32.0, 255.0);
                    drawingLabelColor = new Bgr(255.0, 255.0, 128.0);
                    break;
            }
        }
 public VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, ContourContainer contour, double currentPanKinect, double currentTiltKinect)
     : this(decider, id, VideoTargetType.ColorBlob)
 {
     Update(contour, currentPanKinect, currentTiltKinect);
 }
 public VideoSurveillanceTarget(VideoSurveillanceDecider decider, int id, MCvBlob blob, double currentPanKinect, double currentTiltKinect)
     : this(decider, id, VideoTargetType.SurveillanceBlob)
 {
     Update(blob, currentPanKinect, currentTiltKinect);
 }