38 std::vector<std::pair<unsigned int, unsigned int>>
links;
71 PoseSkeleton(std::shared_ptr<PoseSkeletonDefinition> def);
82 char const *
nodeName(
unsigned int id)
const;
85 unsigned int nodeColor(
unsigned int id)
const;
88 unsigned int linkColor(
unsigned int id)
const;
91 std::vector<std::pair<unsigned int, unsigned int>>
const &
linkDefinitions()
const;
95 std::shared_ptr<PoseSkeletonDefinition> psd;
JEVOIS_DEFINE_ENUM_CLASS(CameraSensor,(any)(imx290)(os08a10)(ar0234))
Enum for different sensor models.
Main namespace for all JeVois classes and functions.
An enum for different kinds of skeletons.
std::vector< unsigned int > nodeColors
colors of nodes (size nn)
std::vector< std::pair< unsigned int, unsigned int > > links
link definitions, each is pair of node IDs (size nl)
std::vector< std::string > nodeNames
names of nodes (size nn)
std::vector< unsigned int > linkColors
link colors (size nl)
A pose skeleton link between two nodes.
float y1
Coordinates of first joint, in image coords (b2i() already applied)
float y2
Coordinates of second joint, in image coords (b2i() already applied)
float confidence
Confidence in that link (e.g., product of the 2 node confidences), [0.0 .. 100.0].
unsigned int id
Link id within the skeleton's definition of links.
float y
Node location, in image coords (b2i() already applied)
unsigned int id
Node ID (number) within the skeleton's definition of nodes.
float confidence
Node confidence [0.0 .. 100.0].
A simple skeleton class for pose detection deep neural networks.
std::vector< Node > nodes
The nodes we found in this detection.
unsigned int linkColor(unsigned int id) const
Get draw color of a node from its ID, as 0xAABBGGRR (note: returned unsigned int is the same as ImU32...
unsigned int numSkeletonNodes() const
Get the total number of nodes in the skeleton. Node ID is from 0 to that total - 1.
std::vector< Link > links
The links we found in this detection.
std::vector< std::pair< unsigned int, unsigned int > > const & linkDefinitions() const
Get a const ref to our link definitions, useful to iterate over. Each link is <node_id_1,...
unsigned int numSkeletonLinks() const
Get the total number of links in the skeleton. Link ID is from 0 to that total - 1.
unsigned int nodeColor(unsigned int id) const
Get draw color of a node from its ID, as 0xAABBGGRR (note: returned unsigned int is the same as ImU32...
char const * nodeName(unsigned int id) const
Get the name of a node from its ID.