nx_metadata_sdk
1.0
Metadata SDK
|
#include <i_motion_metadata_packet.h>
Public Member Functions | |
virtual const uint8_t * | motionData () const =0 |
virtual int | motionDataSize () const =0 |
virtual int | rowCount () const =0 |
virtual int | columnCount () const =0 |
virtual bool | isEmpty () const =0 |
virtual bool | isMotionAt (int columnIndex, int rowIndex) const =0 |
![]() | |
virtual IRefCountable * | queryInterface (const InterfaceId *id) |
Ptr< Interface > | queryInterface () |
Ptr< const Interface > | queryInterface () const |
Static Public Member Functions | |
static auto | interfaceId () |
Additional Inherited Members | |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
Metadata packet containing information about motion on the scene.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Motion metadata is represented as a grid with a certain number of rows and columns. The grid coordinate system starts at the top left corner, the row index grows down and the column index grows right. This grid is represented as a contiguous array, each bit of which corresponds to the state of a particular cell of the grid (1 if motion has been detected in this cell, 0 otherwise). The bit index for a cell with coordinates (column, row) can be calculated using the following formula: bitNumber = gridHeight * column + row.
|
pure virtual |
|
pure virtual |