TsGTFilter.cpp File Reference
#include "TsGTFilter.h"
#include "../Config.h"
#include <cmath>

Go to the source code of this file.

Macros

#define testDirectMapping(transfPtr, pt1, pt2, maxError)
 
#define testInverseMapping(transfPtr, pt1, pt2, maxError)
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (TsGTFilter)
 

Macro Definition Documentation

#define testDirectMapping (   transfPtr,
  pt1,
  pt2,
  maxError 
)
Value:
{ \
te::gm::Coord2D mappedCoord; \
transfPtr->directMap( pt1, mappedCoord ); \
const double diffx = mappedCoord.x - pt2.x; \
const double diffy = mappedCoord.y - pt2.y; \
const double error = sqrt( ( diffx * diffx ) + ( diffy * diffy ) ); \
CPPUNIT_ASSERT_DOUBLES_EQUAL( 0, error, maxError ); \
}
te::gm::Point * pt2
te::gm::Point * pt1

Definition at line 26 of file TsGTFilter.cpp.

Referenced by TsGTFilter::tcApplyRansacMultiThread(), and TsGTFilter::tcApplyRansacWithTPSet1().

#define testInverseMapping (   transfPtr,
  pt1,
  pt2,
  maxError 
)
Value:
{ \
te::gm::Coord2D mappedCoord; \
transfPtr->inverseMap( pt2, mappedCoord ); \
const double diffx = mappedCoord.x - pt1.x; \
const double diffy = mappedCoord.y - pt1.y; \
const double error = sqrt( ( diffx * diffx ) + ( diffy * diffy ) ); \
CPPUNIT_ASSERT_DOUBLES_EQUAL( 0, error, maxError ); \
}
te::gm::Point * pt2
te::gm::Point * pt1

Definition at line 36 of file TsGTFilter.cpp.

Referenced by TsGTFilter::tcApplyRansacMultiThread(), and TsGTFilter::tcApplyRansacWithTPSet1().

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( TsGTFilter  )