#include <DetectionSequence.h>
Class for storing a full sequence of frame, each with multiple detected objects.
core::DetectionSequence::DetectionSequence |
( |
std::string const & |
name = "DetectionSequence" | ) |
|
Creates a detection sequence with the given name.
- Parameters
-
name | The name of this sequence |
void core::DetectionSequence::AddObject |
( |
ObjectDataPtr |
object_data | ) |
|
Adds a new object, creates a new frame vector if the given objects frame index is greater than the current frame vector size.
- Parameters
-
object_data | The object to add |
void core::DetectionSequence::Clear |
( |
| ) |
|
size_t core::DetectionSequence::GetFrameCount |
( |
| ) |
const |
Gets the frame count.
- Returns
- The frame count
size_t core::DetectionSequence::GetFrameOffset |
( |
| ) |
const |
Gets the frame offset.
- Returns
- The Frame offset
std::string core::DetectionSequence::GetName |
( |
| ) |
const |
Gets the name of this sequence.
- Returns
- The name
ObjectDataPtr core::DetectionSequence::GetObject |
( |
size_t |
frame_index, |
|
|
size_t |
object_index |
|
) |
| |
Gets a pointer to the object in the given frame with the given index.
- Parameters
-
frame_index | The frame to get the object from |
object_index | The objects index in the corresponding frame |
- Returns
- A pointer to the stored object data
size_t core::DetectionSequence::GetObjectCount |
( |
size_t |
frame_index | ) |
|
Gets the object count in the given frame.
- Parameters
-
frame_index | The frame to get the object count of |
- Returns
- The number of objects in this frame
Overrides the << operator for easy output.
- Parameters
-
os | The stream to write to |
obj | The object to write into the stream |
- Returns
- The stream written to
The documentation for this class was generated from the following files: