$search

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 >
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_ ( x  )  [inline]

Definition at line 21 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:
gt Ground truth rectangle.
measurement The measured rectangle or any rectangle for comparison.
areaRatioThreshold The 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 32 of file HaardetectorUnitTest.cpp.

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

Definition at line 51 of file HaardetectorUnitTest.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


cob_people_detection
Author(s): Richard Bormann
autogenerated on Tue Mar 5 11:50:10 2013