#include <DirectionRelationHeuristic.h>
Public Member Functions | |
void | apply (std::vector< boost::shared_ptr< TreeNode > > pNodes) |
void | apply (std::vector< boost::shared_ptr< TreeNode > > pNodes, boost::shared_ptr< TreeNode > pChild) |
DirectionRelationHeuristic (const double pStaticBreakRatio, const double pTogetherRatio, const double pMaxAngleDeviation) | |
boost::shared_ptr< TreeNode > | getBestCluster () |
boost::shared_ptr< TreeNode > | getBestParentNode () |
~DirectionRelationHeuristic () | |
Public Member Functions inherited from SceneModel::AbstractHeuristic | |
AbstractHeuristic (std::string pDescription) | |
bool | operator< (const AbstractHeuristic &heuristic) const |
void | reset () |
virtual | ~AbstractHeuristic () |
Private Member Functions | |
Eigen::Vector3d | getDirectionVector (const boost::shared_ptr< ISM::Object > first, const boost::shared_ptr< ISM::Object > second) |
Private Attributes | |
double | mMaxAngleDeviation |
double | mStaticBreakRatio |
double | mTogetherRatio |
Additional Inherited Members | |
Protected Attributes inherited from SceneModel::AbstractHeuristic | |
std::vector< boost::shared_ptr< TreeNode > > | candidates |
double | score |
Implementation of the abstract relation scoring heuristic using a directord relation approach. Calculate direction vectors between simultaneously recorded object estimations in a pair of trajectories. Calculate angles between consecutive direction vectors. Calculate direction continuity as described in Meißner et al. 2013 in Sec. V. A.. Calculate average distance between object estimations (recorded at the same time) over the trajectory pair as well.
Definition at line 49 of file DirectionRelationHeuristic.h.
SceneModel::DirectionRelationHeuristic::DirectionRelationHeuristic | ( | const double | pStaticBreakRatio, |
const double | pTogetherRatio, | ||
const double | pMaxAngleDeviation | ||
) |
Constructor.
pStaticBreakRatio | Maximal percentage of breaks in object relation. |
pTogetherRatio | Minimal percentage of the frames objects are related relation. |
pMaxAngleDeviation | Maximal allowed angular distance between two objects. |
Definition at line 22 of file DirectionRelationHeuristic.cpp.
SceneModel::DirectionRelationHeuristic::~DirectionRelationHeuristic | ( | ) |
Destructor.
Definition at line 30 of file DirectionRelationHeuristic.cpp.
|
virtual |
Applies the heuristic to the trajectory set.
pNodes | The set of nodes containing the trajectories that this heuristic should be applied to. |
Reimplemented from SceneModel::AbstractHeuristic.
Definition at line 34 of file DirectionRelationHeuristic.cpp.
|
virtual |
Applies the heuristic to the trajectory set, specifies one of the elements of the resulting cluster.
pNodes | The set of nodes containing the trajectories that this heuristic should be applied to. |
pChild | The node that should act as child node. |
Reimplemented from SceneModel::AbstractHeuristic.
Definition at line 175 of file DirectionRelationHeuristic.cpp.
|
virtual |
Returns the best cluster found by the heuristic.
Reimplemented from SceneModel::AbstractHeuristic.
Definition at line 303 of file DirectionRelationHeuristic.cpp.
|
virtual |
Returns the best parent node calculated for the node specified before.
Reimplemented from SceneModel::AbstractHeuristic.
Definition at line 360 of file DirectionRelationHeuristic.cpp.
|
private |
Returns the direction vector between two objects.
first | The first object. |
second | The second object. |
Definition at line 365 of file DirectionRelationHeuristic.cpp.
|
private |
Maximal allowed angular distance between two objects. It the distance is greater, we have a break in the relation between the two objects.
Definition at line 123 of file DirectionRelationHeuristic.h.
|
private |
Maximal percentage of breaks in object relation. If there are more breaks between the objects this candidate relation is ruled out.
Definition at line 111 of file DirectionRelationHeuristic.h.
|
private |
Minimal percentage of the time objects are related relation. Objects must be at least related for this percent of all frames.
Definition at line 117 of file DirectionRelationHeuristic.h.