Skip to main content Link Search Menu Expand Document (external link)

@irtype attribute

:electric_plug: dp.kinect dp.kinect2 dp.kinect3 dp.oak
:information_source: signature
irtype {char | long | float32 | float64}
:house: values
8-bit unsigned integer
signed integer default
32-bit normalized floating point
64-bit normalized floating point
:bulb: examples
@irtype float32

Infrared (IR) values in 8-bit unsigned integer, long signed integer, or 32/64-bit normalized float. Enable IR output with @irmap.

  • char values [0..255] are compact yet result in a slight loss of precision
  • long values are signed integers; 32-bit with Max 32-bit, 64-bit with Max 64-bit
  • float32 and float64 values [0.0..1.0] are for computation efficiency; not increased accuracy

The plugin can convert sensor data to supported types efficiently. Consider how the data is later consumed to choose the best data type. For example, the memory size of a float32 jitter matrix is four times larger than char. Yet, having the data as float32 may speed later processing with OpenGL, filters, shaders, etc.