|
Tracore
|
#include <DetectionSequence.h>
Public Member Functions | |
| DetectionSequence (std::string name) | |
| void | AddObject (ObjectData object_data) |
| void | Clear () |
| std::string | GetName () const |
| ObjectData | GetObject (size_t frame_index, size_t object_index) |
| size_t | GetFrameCount () const |
| size_t | GetObjectCount (size_t frame_index) const |
Protected Member Functions | |
| virtual void | Print (std::ostream &os) const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const DetectionSequence &obj) |
Class for storing a full sequence of frame, each with multiple detected objects.
| core::DetectionSequence::DetectionSequence | ( | std::string | name | ) |
Creates a detection sequence with the given name.
| name | The name of this sequence |
| void core::DetectionSequence::AddObject | ( | ObjectData | 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.
| object_data | The object to add |
| void core::DetectionSequence::Clear | ( | ) |
Removes all objects.
| size_t core::DetectionSequence::GetFrameCount | ( | ) | const |
Gets the frame count.
| std::string core::DetectionSequence::GetName | ( | ) | const |
Gets the name of this sequence.
| ObjectData core::DetectionSequence::GetObject | ( | size_t | frame_index, |
| size_t | object_index | ||
| ) |
Gets the object in the given frame with the given index.
| frame_index | The frame to get the object from |
| object_index | The objects index in the corresponding frame |
| size_t core::DetectionSequence::GetObjectCount | ( | size_t | frame_index | ) | const |
Gets the object count in the given frame.
| frame_index | The frame to get the object count of |
|
protectedvirtual |
Used in the << operator
| os | The stream to write to |
|
friend |
Overrides the << operator for easy output. Calls the print method.
| os | The stream to write to |
| obj | The object to write into the stream |
1.8.12