Check if there is a bounding-box in the exact frame number
| 94 | |
| 95 | // Check if there is a bounding-box in the exact frame number |
| 96 | bool TrackedObjectBBox::ExactlyContains(int64_t frame_number) const |
| 97 | { |
| 98 | // Get the time of given frame |
| 99 | double time = FrameNToTime(frame_number, 1.0); |
| 100 | // Create an iterator that points to the BoxVec pair indexed by the exact time of given frame |
| 101 | auto it = BoxVec.find(time); |
| 102 | if (it == BoxVec.end()){ |
| 103 | // BoxVec pair not found |
| 104 | return false; |
| 105 | } |
| 106 | return true; |
| 107 | } |
| 108 | |
| 109 | // Remove a bounding-box from the BoxVec map |
| 110 | void TrackedObjectBBox::RemoveBox(int64_t frame_number) |
no outgoing calls
no test coverage detected