float Scenario::ComputeCenterDistance |
( |
Element |
first, |
|
|
Element |
second |
|
) |
| |
|
static |
Computes the distance between two objects. Uses the distance between the center of the objects. Can be overriden in subclasses.
- Parameters
-
first | The first object |
second | The second object |
- Returns
- The distance between the center of the objects.
Computes the distance between two objects. Uses the distance between the position of the objects as default. Can be overriden in subclasses.
- Parameters
-
first | The first object |
second | The second object |
- Returns
- The distance between the objects
Detects a certain scenario. Must be overriden in subclasses.
- Parameters
-
detected_objects | The frame data with detected objects |
- Returns
- true whether the circumstances for a certain scenario are met, false if not
Implemented in HumansInFrontOfBusScenario.
Computes whether the big element contains the small one
- Parameters
-
big | The surrounding object |
small | The contained object |
- Returns
- true whether it is contained, false if not (equal size and position will be true)
Computes whether the two objects overlap. As default, overlapping of one pixel in the bounding boxes of the elements is enough to return true. Can be overriden in subclasses.
- Parameters
-
first | The first object |
second | The second object |
- Returns
- true whether there is an overlapping, false if not
virtual std::string Scenario::GetScenarioInformation |
( |
| ) |
|
|
pure virtual |
Describes the detectable scenario with a human-readable string. Must be overriden in subclasses.
- Returns
- A String that describes the detected scenario
Implemented in HumansInFrontOfBusScenario.
The documentation for this class was generated from the following files:
- src/ScenarioAnalysation/scenario.h
- src/ScenarioAnalysation/scenario.cpp