Remove a bounding-box from the BoxVec map
| 108 | |
| 109 | // Remove a bounding-box from the BoxVec map |
| 110 | void TrackedObjectBBox::RemoveBox(int64_t frame_number) |
| 111 | { |
| 112 | // Get the time of given frame |
| 113 | double time = this->FrameNToTime(frame_number, 1.0); |
| 114 | // Create an iterator that points to the BoxVec pair indexed by the time of given frame |
| 115 | auto it = BoxVec.find(time); |
| 116 | if (it != BoxVec.end()) |
| 117 | { |
| 118 | // The BoxVec pair exists, so remove it |
| 119 | BoxVec.erase(time); |
| 120 | } |
| 121 | return; |
| 122 | } |
| 123 | |
| 124 | // Return a bounding-box from BoxVec with it's properties adjusted by the Keyframes |
| 125 | BBox TrackedObjectBBox::GetBox(int64_t frame_number) |
no test coverage detected