VLTIF
CS426FinalProject
PointComp Struct Reference

#include <PointTracker.h>

List of all members.

Public Member Functions

bool operator() (Point const &a, Point const &b)

Detailed Description

Functor which will compare two OpenCV Points. Used for the set stl container.

Parameters:
aFirst point
bSecond point
Returns:
true if point a is closer to the origin than b.

Definition at line 33 of file PointTracker.h.


Member Function Documentation

bool PointComp::operator() ( Point const &  a,
Point const &  b 
)

Function operator for the Point Comparison Structure

Parameters:
aFirst point
bSecond point
Returns:
The point which is nearest to the origin

Definition at line 16 of file PointTracker.cpp.

References PointDistanceL2().

                                                         {
    return ( PointDistanceL2(a, Point(0, 0)) < PointDistanceL2(b, Point(0, 0)));
}

The documentation for this struct was generated from the following files: