Exemplo n.º 1
0
	DeviceOptions::DeviceOptions()
	{
		mDeviceId					= "";
		mDeviceIndex				= 0;
		mEnabledDepth				= true;
		mEnabledNearMode			= false;
		mEnabledSeatedMode			= false;
		mEnabledSkeletonTracking	= true;
		mEnabledUserTracking		= true;
		mEnabledVideo				= true;
		setDepthResolution( ImageResolution::NUI_IMAGE_RESOLUTION_320x240 );
		setVideoResolution( ImageResolution::NUI_IMAGE_RESOLUTION_640x480 );
	}
Exemplo n.º 2
0
//--------------------------------------------------------------------
ofxKinect::ofxKinect() {
	ofLog(OF_LOG_VERBOSE, "ofxKinect: Creating ofxKinect");

	deviceId = -1;
	serial = "";

	bUseTexture = true;
	bGrabVideo = true;

	// set defaults
	bGrabberInited = false;

	bNeedsUpdate = false;
	bUpdateTex = false;
	bIsFrameNew = false;

	bIsVideoInfrared = false;
	bHighResIR = false;
	videoBytesPerPixel = 3;

	kinectDevice = NULL;

	targetTiltAngleDeg = 0;
	currentTiltAngleDeg = 0;
	bTiltNeedsApplying = false;

    currentLed = -1;
    bLedNeedsApplying = false;

	lastDeviceId = -1;
	tryCount = 0;
	timeSinceOpen = 0;
	bGotData = false;

	bUseRegistration = false;
	bNearWhite = true;

	setDepthClipping();
	setVideoResolution(FREENECT_RESOLUTION_MEDIUM);
}