public HeadUserGameObject(double xPosition, double yPosition, Geometry boundingBoxGeometry, Image notAlreadyTrackedImage, Image image, SkeletonSmoothingFilter skeletonSmoothingFilter) { this.firstTimeTracked = false; this.notAlreadyTrackedImage = notAlreadyTrackedImage; this.cursorImage = image; this._image = notAlreadyTrackedImage; base._xPosition = xPosition; base._yPosition = yPosition; base._boundingBoxGeometry = boundingBoxGeometry; base._gameObjectTag = Tags.USER_TAG; //this.kinectSensorHelper = new KinectSensorHelper(skeletonSmoothingFilter); this.kinectSensorHelper = KinectSensorHelper.getKinectSensorHelperSingleton(); //this.kinectSensorHelper.initializeKinect(); //this.calibrateCamera(); }
public static KinectSensorHelper getKinectSensorHelperSingleton() { if (kinectSensorHelperSingleton == null) { kinectSensorHelperSingleton = new KinectSensorHelper(SkeletonSmoothingFilter.MEDIUM_SMOOTHING_LEVEL); } return kinectSensorHelperSingleton; }