Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
auterion::TrackingSelection Struct Reference

Represents the tracking selection as received by AMC. More...

#include <auterion_sdk/tracking/common.hpp>

Public Member Functions

 TrackingSelection (cv::Point2d normalized_point, std::optional< uint16_t > frame_id=std::nullopt)
 Constructor for creating a tracking selection with a point only. More...
 
 TrackingSelection (cv::Point2d normalized_point, cv::Size2d normalized_window_size, std::optional< uint16_t > frame_id=std::nullopt)
 Constructor for creating a tracking selection with a point and a window size. This should be used when the selection window size is known. More...
 

Public Attributes

cv::Point2d normalized_point
 
cv::Size2d normalized_window_size
 
std::optional< uint16_t > frame_id
 Optional identifier of the selected frame.
 

Detailed Description

Represents the tracking selection as received by AMC.

This structure holds information about a tracking selection, meaning its normalized point, normalized window size, and timestamp. The normalized point and rectangle are with respect to the displayed region.

Constructor & Destructor Documentation

◆ TrackingSelection() [1/2]

auterion::TrackingSelection::TrackingSelection ( cv::Point2d  normalized_point,
std::optional< uint16_t >  frame_id = std::nullopt 
)
inline

Constructor for creating a tracking selection with a point only.

Parameters
normalized_pointThe normalized coordinates of the selection in the displayed region.
frame_idIdentifier for the image in which the selection was made.

◆ TrackingSelection() [2/2]

auterion::TrackingSelection::TrackingSelection ( cv::Point2d  normalized_point,
cv::Size2d  normalized_window_size,
std::optional< uint16_t >  frame_id = std::nullopt 
)
inline

Constructor for creating a tracking selection with a point and a window size. This should be used when the selection window size is known.

Parameters
normalized_pointThe normalized coordinates of the selection in the displayed region.
normalized_window_sizeThe normalized size of the selection window in the displayed region.
frame_idIdentifier for the image in which the selection was made.

Member Data Documentation

◆ normalized_point

cv::Point2d auterion::TrackingSelection::normalized_point

Normalized coordinates of the tracking selection in the displayed region (in [0, 1]).

◆ normalized_window_size

cv::Size2d auterion::TrackingSelection::normalized_window_size

Normalized size of the tracking selection window in the displayed region (in [0, 1]).


The documentation for this struct was generated from the following file: