MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / RemoveBox

Method RemoveBox

src/TrackedObjectBBox.cpp:110–122  ·  view source on GitHub ↗

Remove a bounding-box from the BoxVec map

Source from the content-addressed store, hash-verified

108
109// Remove a bounding-box from the BoxVec map
110void 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
125BBox TrackedObjectBBox::GetBox(int64_t frame_number)

Callers 1

KeyFrame.cppFile · 0.80

Calls 1

FrameNToTimeMethod · 0.95

Tested by

no test coverage detected