Represents the interface to the capabilities of the Nuitrack Depth Sensor module.
More...
Inherits nuitrack.Module.
|
DepthFrame | frame |
|
OutputMode | mode |
|
float | cX |
|
float | cY |
|
float | fX |
|
float | fY |
|
System.IntPtr | ptr |
|
int | usageCount |
|
int | isSubscribed |
|
long | lastCall |
|
|
OnUpdate | OnUpdateEvent |
| Raised when the module data is updated.
|
|
System.IntPtr | Ptr [get] |
| Gets the native ptr. More...
|
|
Represents the interface to the capabilities of the Nuitrack Depth Sensor module.
To enable the module, you must create an instance of this class. To create the instance, use the DepthSensor.Create () method. This instance is called DepthSensor module object.
Vector3 nuitrack.DepthSensor.ConvertProjToRealCoords |
( |
int |
x, |
|
|
int |
y, |
|
|
UInt16 |
depth |
|
) |
| |
|
inline |
Convert projective coordinates to real world coordinates from x, y and the depth map.
- Parameters
-
[in] | x,y | Projective point coordinates. |
[in] | depth | Depth map. |
- Returns
- Real world coordinates.
Convert projective coordinates to real world coordinates from the Vector3 point.
- Parameters
-
[in] | p | Projective point coordinates. |
- Returns
- Real world coordinates.
Vector3 nuitrack.DepthSensor.ConvertRealToProjCoords |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
inline |
Convert real world coordinates to projective coordinates from x, y, z.
- Parameters
-
[in] | x,y,z | Real world coordinates. |
- Returns
- Projective coordinates.
Convert real world coordinates to projective coordinates from the Vector3 point.
- Parameters
-
[in] | p | Real world coordinates. |
- Returns
- Projective coordinates.
virtual DepthFrame nuitrack.DepthSensor.GetDepthFrame |
( |
| ) |
|
|
inlinevirtual |
Get the depth frame.
- Returns
- Returns the depth frame.
Get output mode of the depth sensor.
- Returns
- Returns output mode of the depth sensor.
abstract bool nuitrack.DepthSensor.IsMirror |
( |
| ) |
|
|
pure virtual |
Determine the mirror mode state.
- Returns
- Returns true if mirror mode is enabled, otherwise, false.
- See Also
- SetMirror
abstract void nuitrack.DepthSensor.SetMirror |
( |
bool |
mirror | ) |
|
|
pure virtual |
Set mirror mode.
Call SetMirror(true) to enable mirror mode. Call SetMirror(false) to disable mirror mode.
If the mirror mode is on, the depth map from the sensor will be reflected horizontally before consequent processing.
- Parameters
-
[in] | mirror | Mirror mode to be set. |
- See Also
- IsMirror
void nuitrack.DepthSensor.SignalOnUpdate |
( |
DepthFrame |
frame | ) |
|
|
inlineprotected |
- Warning
- For internal use only.
- Warning
- For internal use only.