LibCarna Version 3.4.0
Loading...
Searching...
No Matches
BufferedIntensityVolumeTest.hpp
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#pragma once
16
17#include <LibCarna/LibCarna.hpp>
19
20namespace LibCarna
21{
22
23namespace testing
24{
25
26
27
28// ----------------------------------------------------------------------------------
29// BufferedIntensityVolumeTest
30// ----------------------------------------------------------------------------------
31
37class BufferedIntensityVolumeTest : public QObject
38{
39
40 Q_OBJECT
41
42private slots:
43
46 void initTestCase();
47
50 void cleanupTestCase();
51
54 void init();
55
58 void cleanup();
59
60 // ---------------------------------------------------------------------------------
61
62 void test_bufferValueToIntensity();
63
64 void test_intensityToBufferValue();
65
66 void test_instantiation();
67
68 void test_parenthesisOperator();
69
70 void test_setVoxel();
71
72 // ---------------------------------------------------------------------------------
73
74private:
75
76 unsigned int indexByPosition( const base::math::Vector3ui& ) const;
77
78 float intensityByIndex( unsigned int index ) const;
79
81
82 std::unique_ptr< base::IntensityVolumeUInt16 > volume;
83
84}; // BufferedIntensityVolumeTest
85
86
87
88} // namespace testing
89
90} // namespace LibCarna
Defines LibCarna::base::BufferedIntensityVolume.
Contains forward-declarations.
BufferType Buffer
Holds the used buffer type.
Unit-tests of the LibCarna::base::BufferedIntensityVolume class.
Eigen::Matrix< unsigned int, 3, 1 > Vector3ui
Defines vector.
Definition math.hpp:203