Fraxinus  17.12-rc1
An IGT application
MethodTests.cpp File Reference
#include <vector>
#include <vtkSmartPointer.h>
#include "AngleCorrection.h"
#include <vtkPolyDataWriter.h>
#include <vtkPolyDataReader.h>
#include <vtkPolyData.h>
#include <vtkPointData.h>
#include <cstdio>
#include <time.h>
#include "catch.hpp"

Go to the source code of this file.

Functions

char * appendTestFolder (const char *filename)
 
void validateVtkPD (vtkSmartPointer< vtkPolyData > leftHandSide, vtkSmartPointer< vtkPolyData > rightHandSide, bool shouldBeEqual=true)
 
void validateFiles (const char *filename_a, const char *filename_b, bool shouldBeEqual=true)
 
void testFlow (char centerline[], char image_prefix[], double Vnyq, double cutoff, int nConvolutions, char true_output[])
 
void validateFlowDirection_FlowVel (vectorSpline3dDouble splines, double *true_flow)
 
void testFlowDirection_FlowVel (char centerline[], char image_prefix[], double Vnyq, double cutoff, int nConvolutions, double *true_flow)
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 1","[angle_correction]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 1 unit","[angle_correction]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 2","[angle_correction][flow_dir][not_integration]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 3","[angle_correction][not_integration][flow_dir][not_apple]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 4","[angle_correction][not_integration][flow_dir]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 5","[angle_correction][not_integration][flow_dir]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 5 unit","[angle_correction][flow_dir]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 6","[angle_correction][not_integration][flow_dir]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 7, aliasing","[angle_correction][not_integration][aliasing][not_apple]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 8, aliasing","[angle_correction][not_integration][aliasing]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 8, aliasing, unit","[angle_correction][aliasing]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 9, cross movement","[angle_correction][not_integration]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation 10, cross movement","[angle_correction]")
 
 TEST_CASE ("AngleCorrection: Test Invalid parameters","[angle_correction]")
 
 TEST_CASE ("AngleCorrection: Test several runs","[angle_correction][not_integration]")
 
 TEST_CASE ("AngleCorrection: Test several runs cl pointer input","[angle_correction][not_integration][not_apple]")
 
 TEST_CASE ("AngleCorrection: Benchmark","[angle_correction][Benchmark]")
 
 TEST_CASE ("AngleCorrection: Test several runs cl pointer input simple","[angle_correction][not_integration][simple]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation tumour data","[angle_correction][not_integration]")
 
 TEST_CASE ("AngleCorrection: Test flow direction estimation tumour data, unit","[angle_correction]")
 
 TEST_CASE ("AngleCorrection: Test error handler","[angle_correction]")
 

Function Documentation

char* appendTestFolder ( const char *  filename)

Definition at line 25 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 1"  ,
""  [angle_correction] 
)

Definition at line 162 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 1 unit"  ,
""  [angle_correction] 
)

Definition at line 177 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 2"  ,
""  [angle_correction][flow_dir][not_integration] 
)

Definition at line 194 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 3"  ,
""  [angle_correction][not_integration][flow_dir][not_apple] 
)

Definition at line 211 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 4"  ,
""  [angle_correction][not_integration][flow_dir] 
)

Definition at line 228 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 5"  ,
""  [angle_correction][not_integration][flow_dir] 
)

Definition at line 245 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 5 unit"  ,
""  [angle_correction][flow_dir] 
)

Definition at line 262 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation 6"  ,
""  [angle_correction][not_integration][flow_dir] 
)

Definition at line 279 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation  7,
aliasing"  ,
""  [angle_correction][not_integration][aliasing][not_apple] 
)

Definition at line 296 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation  8,
aliasing"  ,
""  [angle_correction][not_integration][aliasing] 
)

Definition at line 313 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation  8,
aliasing  ,
unit"  ,
""  [angle_correction][aliasing] 
)

Definition at line 329 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation  9,
cross movement"  ,
""  [angle_correction][not_integration] 
)

Definition at line 345 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation  10,
cross movement"  ,
""  [angle_correction] 
)

Definition at line 361 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test Invalid parameters"  ,
""  [angle_correction] 
)

Definition at line 378 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test several runs"  ,
""  [angle_correction][not_integration] 
)

Definition at line 457 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test several runs cl pointer input"  ,
""  [angle_correction][not_integration][not_apple] 
)

Definition at line 564 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Benchmark"  ,
""  [angle_correction][Benchmark] 
)

Definition at line 678 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test several runs cl pointer input simple"  ,
""  [angle_correction][not_integration][simple] 
)

Definition at line 807 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation tumour data"  ,
""  [angle_correction][not_integration] 
)

Definition at line 864 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test flow direction estimation tumour  data,
unit"  ,
""  [angle_correction] 
)

Definition at line 907 of file MethodTests.cpp.

TEST_CASE ( "AngleCorrection: Test error handler"  ,
""  [angle_correction] 
)

Definition at line 977 of file MethodTests.cpp.

void testFlow ( char  centerline[],
char  image_prefix[],
double  Vnyq,
double  cutoff,
int  nConvolutions,
char  true_output[] 
)

Definition at line 121 of file MethodTests.cpp.

void testFlowDirection_FlowVel ( char  centerline[],
char  image_prefix[],
double  Vnyq,
double  cutoff,
int  nConvolutions,
double *  true_flow 
)

Definition at line 149 of file MethodTests.cpp.

void validateFiles ( const char *  filename_a,
const char *  filename_b,
bool  shouldBeEqual = true 
)

Definition at line 95 of file MethodTests.cpp.

void validateFlowDirection_FlowVel ( vectorSpline3dDouble  splines,
double *  true_flow 
)

Definition at line 137 of file MethodTests.cpp.

void validateVtkPD ( vtkSmartPointer< vtkPolyData >  leftHandSide,
vtkSmartPointer< vtkPolyData >  rightHandSide,
bool  shouldBeEqual = true 
)

Definition at line 35 of file MethodTests.cpp.