Functions
HaardetectorUnitTest.cpp File Reference
#include "cob_vision/cob_people_detection/common/include/cob_people_detection/PeopleDetector.h"
#include "cob_vision/cob_people_detection/common/include/cob_people_detection/PeopleDetectorControlFlow.h"
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
Include dependency graph for HaardetectorUnitTest.cpp:

Go to the source code of this file.

Functions

template<typename T >
T abs_ (T x)
bool checkRectangleCorrespondence (cv::Rect &gt, cv::Rect &measurement, double areaRatioThreshold)
int main (int argc, char *argv[])

Function Documentation

template<typename T >
T abs_ ( T  x) [inline]

Definition at line 20 of file HaardetectorUnitTest.cpp.

bool checkRectangleCorrespondence ( cv::Rect &  gt,
cv::Rect &  measurement,
double  areaRatioThreshold 
)

Checks whether two rectangles are located at approximately the same position. E.g. for comparisons between a ground truth localization and the measurement.

Parameters:
gtGround truth rectangle.
measurementThe measured rectangle or any rectangle for comparison.
areaRatioThresholdThe ratio of overlapping area to ground truth area or to detected area must not fall below this threshold otherwise it is no detection.
Returns:
Returns true if both rectangles are similar, else it returns false.

Definition at line 31 of file HaardetectorUnitTest.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 49 of file HaardetectorUnitTest.cpp.



cob_people_detection
Author(s): Richard Bormann , Thomas Zwölfer
autogenerated on Mon May 6 2019 02:32:06