Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Constants

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Describes NUI constants.

NUI_CAMERA Flags

ConstantValue
NUI_CAMERA_DEPTH_IMAGE_TO_SKELETON_MULTIPLIER_320x240(NUI_CAMERA_DEPTH_NOMINAL_INVERSE_FOCAL_LENGTH_IN_PIXELS)
NUI_CAMERA_SKELETON_TO_DEPTH_IMAGE_MULTIPLIER_320x240(NUI_CAMERA_DEPTH_NOMINAL_FOCAL_LENGTH_IN_PIXELS)
NUI_CAMERA_DEPTH_NOMINAL_FOCAL_LENGTH_IN_PIXELS(285.63f)
NUI_CAMERA_DEPTH_NOMINAL_INVERSE_FOCAL_LENGTH_IN_PIXELS(3.501e-3f)
NUI_CAMERA_DEPTH_NOMINAL_DIAGONAL_FOV(70.0f)
NUI_CAMERA_DEPTH_NOMINAL_HORIZONTAL_FOV(58.5f)
NUI_CAMERA_DEPTH_NOMINAL_VERTICAL_FOV(45.6f)
NUI_CAMERA_COLOR_NOMINAL_FOCAL_LENGTH_IN_PIXELS(531.15f)
NUI_CAMERA_COLOR_NOMINAL_INVERSE_FOCAL_LENGTH_IN_PIXELS(1.83e-3f)
NUI_CAMERA_COLOR_NOMINAL_DIAGONAL_FOV( 73.9f)
NUI_CAMERA_COLOR_NOMINAL_HORIZONTAL_FOV( 62.0f)
NUI_CAMERA_COLOR_NOMINAL_VERTICAL_FOV( 48.6f)
NUI_CAMERA_ELEVATION_MAXIMUM27
NUI_CAMERA_ELEVATION_MINIMUM(-27)

Header: NuiImageCamera.h

NUI_IMAGE Flags

ConstantValue
NUI_IMAGE_DEPTH_MAXIMUM((4000 << NUI_IMAGE_PLAYER_INDEX_SHIFT) | NUI_IMAGE_PLAYER_INDEX_MASK)
NUI_IMAGE_DEPTH_MINIMUM(800 << NUI_IMAGE_PLAYER_INDEX_SHIFT)
NUI_IMAGE_DEPTH_NO_VALUE0
NUI_IMAGE_STREAM_FLAG_DISTINCT_OVERFLOW_DEPTH_VALUES0x00040000
NUI_IMAGE_STREAM_FLAG_ENABLE_NEAR_MODE0x00020000
NUI_IMAGE_STREAM_FLAG_SUPPRESS_NO_FRAME_DATA0x00010000
NUI_IMAGE_STREAM_FLAG_TOO_FAR_IS_NONZERO0x00040000
NUI_IMAGE_STREAM_FRAME_LIMIT_MAXIMUM4
NUI_IMAGE_PLAYER_INDEX_SHIFT3
NUI_IMAGE_PLAYER_INDEX_MASK((1 << NUI_IMAGE_PLAYER_INDEX_SHIFT)-1)

Header: NuiImageCamera.h

NUI_INITIALIZE Flags

Kinect sensor initialization options when calling NuiInitialize. These may be combined using a bitwise OR.

ConstantDescription
NUI_INITIALIZE_DEFAULT_HARDWARE_THREADThis flag was deprecated in version 1.5; it is no longer used.
NUI_INITIALIZE_FLAG_USES_AUDIOInitialize the sensor to provide audio data.
NUI_INITIALIZE_FLAG_USES_COLORInitialize the sensor to provide color data.
NUI_INITIALIZE_FLAG_USES_DEPTHInitialize the sensor to provide depth data.
NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEXInitialize the sensor to provide depth data with a player index.
NUI_INITIALIZE_FLAG_USES_SKELETONInitialize the sensor to provide skeleton data.

Header: NuiApi.h

NUI_SKELETON Flags

ConstantValue
NUI_SKELETON_COUNT6
NUI_SKELETON_MAX_TRACKED_COUNT2
NUI_SKELETON_INVALID_TRACKING_ID0
NUI_SKELETON_FRAME_FLAG_CAMERA_MOTION0x00000001
NUI_SKELETON_FRAME_FLAG_EXTRAPOLATED_FLOOR0x00000002
NUI_SKELETON_FRAME_FLAG_UPPER_BODY_SKELETON0x00000004
NUI_SKELETON_TRACKING_FLAG_SUPPRESS_NO_FRAME_DATA0x00000001
NUI_SKELETON_TRACKING_FLAG_TITLE_SETS_TRACKED_SKELETONS0x00000002
NUI_SKELETON_TRACKING_FLAG_ENABLE_SEATED_SUPPORT0x00000004
NUI_SKELETON_TRACKING_FLAG_ENABLE_IN_NEAR_RANGE0x00000008

Header: NuiSkeleton.h

NUI_SKELETON_QUALITY Flags

These flags indicate that part of the person is not visible on the screen. They can be used to provide feedback to the user to move to the center of the visible area. For instance, if a person is clipped on the right of the camera, then the person should move towards the left of the camera (to their right). These flags are used in NUI_SKELETON_DATA structure in the dwQualityFlags member.

ConstantDescription
NUI_SKELETON_QUALITY_CLIPPED_RIGHTPart of the player's body is out of frame to the camera's right.
NUI_SKELETON_QUALITY_CLIPPED_LEFTPart of the player's body is out of frame to the camera's left.
NUI_SKELETON_QUALITY_CLIPPED_TOPPart of the player's body is out of frame above the camera's field of view.
NUI_SKELETON_QUALITY_CLIPPED_BOTTOMPart of the player's body is out of frame below the camera's field of view.

Header: NuiSkeleton.h

E_NUI Error Codes

ConstantValue
E_NUI_DEVICE_NOT_CONNECTED__HRESULT_FROM_WIN32(ERROR_DEVICE_NOT_CONNECTED)
E_NUI_DEVICE_NOT_READY__HRESULT_FROM_WIN32(ERROR_NOT_READY)
E_NUI_ALREADY_INITIALIZED__HRESULT_FROM_WIN32(ERROR_ALREADY_INITIALIZED)
E_NUI_NO_MORE_ITEMS__HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS)
E_NUI_FRAME_NO_DATAMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 1)
E_NUI_STREAM_NOT_ENABLEDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 2)
E_NUI_IMAGE_STREAM_IN_USEMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 3)
E_NUI_FRAME_LIMIT_EXCEEDEDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 4)
E_NUI_FEATURE_NOT_INITIALIZEDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 5)
E_NUI_DATABASE_NOT_FOUNDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 13)
E_NUI_DATABASE_VERSION_MISMATCHMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, 14)
E_NUI_NOTCONNECTEDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, /* 20 */ ERROR_BAD_UNIT)
E_NUI_NOTREADYMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, /* 21 */ ERROR_NOT_READY)
E_NUI_SKELETAL_ENGINE_BUSYMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, /* 170 */ ERROR_BUSY)
E_NUI_NOTPOWEREDMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, /* 639 */ ERROR_INSUFFICIENT_POWER)
E_NUI_BADIINDEXMAKE_HRESULT(SEVERITY_ERROR, FACILITY_NUI, /* 1413 */ ERROR_INVALID_INDEX)

Header: NuiAPI.h

Community Additions

ADD
Show:
© 2015 Microsoft