ITK  5.0.0
Insight Segmentation and Registration Toolkit
Namespaces | Macros
itkGTestPredicate.h File Reference
#include "gtest/gtest.h"
#include "itkNumericTraits.h"
#include <cmath>
+ Include dependency graph for itkGTestPredicate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 itk
 
 itk::GTest
 
 itk::GTest::Predicate
 

Macros

#define EXPECT_VECTOR_NEAR(val1, val2, rmsError)
 

Functions

template<typename T1 , typename T2 >
inline::testing::AssertionResult itk::GTest::Predicate::VectorDoubleRMSPredFormat (const char *expr1, const char *expr2, const char *rmsErrorExpr, const T1 &val1, const T2 &val2, double rmsError)
 

Macro Definition Documentation

#define EXPECT_VECTOR_NEAR (   val1,
  val2,
  rmsError 
)
Value:
val1, val2, rmsError)
inline::testing::AssertionResult VectorDoubleRMSPredFormat(const char *expr1, const char *expr2, const char *rmsErrorExpr, const T1 &val1, const T2 &val2, double rmsError)

A custom GTest macro for comparing 2 itk array-like objects. This verifies that the root mean squares error between the two array-like objects doesn't exceed the given error.

Definition at line 33 of file itkGTestPredicate.h.