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

Method ExactlyContains

src/TrackedObjectBBox.cpp:96–107  ·  view source on GitHub ↗

Check if there is a bounding-box in the exact frame number

Source from the content-addressed store, hash-verified

94
95// Check if there is a bounding-box in the exact frame number
96bool 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
110void TrackedObjectBBox::RemoveBox(int64_t frame_number)

Callers 2

GetVisibleObjectsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected