Carna Version 3.3.3
Loading...
Searching...
No Matches
BufferedHUVolumeTest.h
1/*
2 * Copyright (C) 2010 - 2015 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 */
11
12#pragma once
13
14#include <Carna/Carna.h>
15
16namespace Carna
17{
18
19namespace testing
20{
21
22
23
24// ----------------------------------------------------------------------------------
25// BufferedHUVolumeTest
26// ----------------------------------------------------------------------------------
27
34class BufferedHUVolumeTest : public QObject
35{
36
37 Q_OBJECT
38
39private slots:
40
43 void initTestCase();
44
47 void cleanupTestCase();
48
51 void init();
52
55 void cleanup();
56
57 // ---------------------------------------------------------------------------------
58
59 void test_bufferValueToHUV();
60
61 void test_HUVToBufferValue();
62
63 void test_instantiation();
64
65#if 0
66
67 void test_parenthesisOperator();
68
69 void test_setVoxel();
70
71#endif
72
73 // ---------------------------------------------------------------------------------
74
75private:
76
77 unsigned int indexByPosition( const base::math::Vector3ui& ) const;
78
79 base::HUV huvByIndex( unsigned int index ) const;
80
82
83 std::unique_ptr< base::HUVolumeUInt16 > volume;
84
85}; // BufferedHUVolumeTest
86
87
88
89} // namespace testing
90
91} // namespace Carna
BufferType Buffer
Holds the used buffer type.
Unit-tests of the Carna::base::BufferedHUVolume class.
Eigen::Matrix< unsigned int, 3, 1 > Vector3ui
Defines vector.
Definition math.h:199
Represents values in .
Definition HUV.h:35