25 #ifndef WTALAIRACHCONVERTER_TEST_H
26 #define WTALAIRACHCONVERTER_TEST_H
31 #include <cxxtest/TestSuite.h>
33 #include "../WTalairachConverter.h"
77 TS_ASSERT_DELTA( result[0], 45.35, 0.05 );
78 TS_ASSERT_DELTA( result[1], -57.6, 0.05 );
79 TS_ASSERT_DELTA( result[2], 50.69, 0.05 );
87 WVector3d testPoint( 45.35, -57.6, 50.69 );
90 TS_ASSERT_DELTA( result[0], 200, 0.05 );
91 TS_ASSERT_DELTA( result[1], 60, 0.05 );
92 TS_ASSERT_DELTA( result[2], 130, 0.05 );
103 TS_ASSERT_DELTA( result[0], 12.0, 0.05 );
104 TS_ASSERT_DELTA( result[1], 49.6, 0.05 );
105 TS_ASSERT_DELTA( result[2], -3.8, 0.05 );
113 WVector3d testPoint( 10.5, 46.41, -12.29 );
116 TS_ASSERT_DELTA( result[0], 10.5, 0.05 );
117 TS_ASSERT_DELTA( result[1], 40.25, 0.05 );
118 TS_ASSERT_DELTA( result[2], -38.35, 0.05 );
126 std::shared_ptr<WTalairachConverter>
m_tc;
Tests the Talairach converter class.
void testCanonical2ACPC(void)
Test the conversion "to" ACPC coords.
void testACPC2Canonical(void)
Test the conversion "from" ACPC coords.
std::shared_ptr< WTalairachConverter > m_tc
The Talairach converter object that is tested in the testing functions.
void setUp(void)
Set up the special points of the Talairach coordinate system for testing the converter.
void testTalairach2ACPC(void)
Test conversion from Talairach to ACPC coords.
void testACPC2Talairach(void)
Test conversion from ACPC to Talairach coords.
void tearDown(void)
Release all data need for testing the converter.
class to provide conversions between world or voxel space coordinates und Talairach coordinates