示例#1
0
 internal void UpdateContextObjects()
 {
     if (_pointer != null)
     {
         _pointer.SetObjects(FileLoader.LoadObj("livingRoom.obj", FileLoader.Units.cm));
     }
 }
示例#2
0
        public GestureProcessor(IKinect kinectHandler, KinectData kinect)
        {
            _pointer = new ObjectPointer();
            Log.Debug("objectPointer loaded");
            _pointer.SetObjects(FileLoader.LoadObj("livingRoom.obj", FileLoader.Units.cm));

            Log.Debug("objects loaded");

            _kinectHandler = kinectHandler;
            _kinect        = kinect;
            _seqCoords     = new ArrayList();

            if (kinect != null)
            {
                kinect.attachSkeletonHandler(SkeletonDataReadyHandler);
            }

            _dtw = new DtwGestureRecognizer(12, 0.6, 2, 2, 10);
            Skeleton2DDataExtract.Skeleton2DdataCoordReady += NuiSkeleton2DdataCoordReady;
            _pointer.ContextSelected += PointerContextSelected;
        }