Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
Magma.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 /*============================================================================
14 
15 Raw data from matplotlib colormaps:
16 https://github.com/BIDS/colormap/blob/master/colormaps.py
17 
18 ============================================================================*/
19 
20 #ifndef _lut_Magma_h_
21 #define _lut_Magma_h_
22 
23 static const int Magma[256][3] =
24 {
25  { 0, 0, 4 },{ 1, 0, 5 },{ 1, 1, 6 },{ 1, 1, 8 },{ 2, 1, 9 },{ 2, 2, 11 },{ 2, 2, 13 },{ 3, 3, 15 },{ 3, 3, 18 },{ 4, 4, 20 },
26  { 5, 4, 22 },{ 6, 5, 24 },{ 6, 5, 26 },{ 7, 6, 28 },{ 8, 7, 30 },{ 9, 7, 32 },{ 10, 8, 34 },{ 11, 9, 36 },{ 12, 9, 38 },{ 13, 10, 41 },
27  { 14, 11, 43 },{ 16, 11, 45 },{ 17, 12, 47 },{ 18, 13, 49 },{ 19, 13, 52 },{ 20, 14, 54 },{ 21, 14, 56 },{ 22, 15, 59 },{ 24, 15, 61 },
28  { 25, 16, 63 },{ 26, 16, 66 },{ 28, 16, 68 },{ 29, 17, 71 },{ 30, 17, 73 },{ 32, 17, 75 },{ 33, 17, 78 },{ 34, 17, 80 },{ 36, 18, 83 },
29  { 37, 18, 85 },{ 39, 18, 88 },{ 41, 17, 90 },{ 42, 17, 92 },{ 44, 17, 95 },{ 45, 17, 97 },{ 47, 17, 99 },{ 49, 17, 101 },{ 51, 16, 103 },
30  { 52, 16, 105 },{ 54, 16, 107 },{ 56, 16, 108 },{ 57, 15, 110 },{ 59, 15, 112 },{ 61, 15, 113 },{ 63, 15, 114 },{ 64, 15, 116 },
31  { 66, 15, 117 },{ 68, 15, 118 },{ 69, 16, 119 },{ 71, 16, 120 },{ 73, 16, 120 },{ 74, 16, 121 },{ 76, 17, 122 },{ 78, 17, 123 },
32  { 79, 18, 123 },{ 81, 18, 124 },{ 82, 19, 124 },{ 84, 19, 125 },{ 86, 20, 125 },{ 87, 21, 126 },{ 89, 21, 126 },{ 90, 22, 126 },
33  { 92, 22, 127 },{ 93, 23, 127 },{ 95, 24, 127 },{ 96, 24, 128 },{ 98, 25, 128 },{ 100, 26, 128 },{ 101, 26, 128 },{ 103, 27, 128 },
34  { 104, 28, 129 },{ 106, 28, 129 },{ 107, 29, 129 },{ 109, 29, 129 },{ 110, 30, 129 },{ 112, 31, 129 },{ 114, 31, 129 },{ 115, 32, 129 },
35  { 117, 33, 129 },{ 118, 33, 129 },{ 120, 34, 129 },{ 121, 34, 130 },{ 123, 35, 130 },{ 124, 35, 130 },{ 126, 36, 130 },{ 128, 37, 130 },
36  { 129, 37, 129 },{ 131, 38, 129 },{ 132, 38, 129 },{ 134, 39, 129 },{ 136, 39, 129 },{ 137, 40, 129 },{ 139, 41, 129 },{ 140, 41, 129 },
37  { 142, 42, 129 },{ 144, 42, 129 },{ 145, 43, 129 },{ 147, 43, 128 },{ 148, 44, 128 },{ 150, 44, 128 },{ 152, 45, 128 },{ 153, 45, 128 },
38  { 155, 46, 127 },{ 156, 46, 127 },{ 158, 47, 127 },{ 160, 47, 127 },{ 161, 48, 126 },{ 163, 48, 126 },{ 165, 49, 126 },{ 166, 49, 125 },
39  { 168, 50, 125 },{ 170, 51, 125 },{ 171, 51, 124 },{ 173, 52, 124 },{ 174, 52, 123 },{ 176, 53, 123 },{ 178, 53, 123 },{ 179, 54, 122 },
40  { 181, 54, 122 },{ 183, 55, 121 },{ 184, 55, 121 },{ 186, 56, 120 },{ 188, 57, 120 },{ 189, 57, 119 },{ 191, 58, 119 },{ 192, 58, 118 },
41  { 194, 59, 117 },{ 196, 60, 117 },{ 197, 60, 116 },{ 199, 61, 115 },{ 200, 62, 115 },{ 202, 62, 114 },{ 204, 63, 113 },{ 205, 64, 113 },
42  { 207, 64, 112 },{ 208, 65, 111 },{ 210, 66, 111 },{ 211, 67, 110 },{ 213, 68, 109 },{ 214, 69, 108 },{ 216, 69, 108 },{ 217, 70, 107 },
43  { 219, 71, 106 },{ 220, 72, 105 },{ 222, 73, 104 },{ 223, 74, 104 },{ 224, 76, 103 },{ 226, 77, 102 },{ 227, 78, 101 },{ 228, 79, 100 },
44  { 229, 80, 100 },{ 231, 82, 99 },{ 232, 83, 98 },{ 233, 84, 98 },{ 234, 86, 97 },{ 235, 87, 96 },{ 236, 88, 96 },{ 237, 90, 95 },
45  { 238, 91, 94 },{ 239, 93, 94 },{ 240, 95, 94 },{ 241, 96, 93 },{ 242, 98, 93 },{ 242, 100, 92 },{ 243, 101, 92 },{ 244, 103, 92 },
46  { 244, 105, 92 },{ 245, 107, 92 },{ 246, 108, 92 },{ 246, 110, 92 },{ 247, 112, 92 },{ 247, 114, 92 },{ 248, 116, 92 },{ 248, 118, 92 },
47  { 249, 120, 93 },{ 249, 121, 93 },{ 249, 123, 93 },{ 250, 125, 94 },{ 250, 127, 94 },{ 250, 129, 95 },{ 251, 131, 95 },{ 251, 133, 96 },
48  { 251, 135, 97 },{ 252, 137, 97 },{ 252, 138, 98 },{ 252, 140, 99 },{ 252, 142, 100 },{ 252, 144, 101 },{ 253, 146, 102 },{ 253, 148, 103 },
49  { 253, 150, 104 },{ 253, 152, 105 },{ 253, 154, 106 },{ 253, 155, 107 },{ 254, 157, 108 },{ 254, 159, 109 },{ 254, 161, 110 },
50  { 254, 163, 111 },{ 254, 165, 113 },{ 254, 167, 114 },{ 254, 169, 115 },{ 254, 170, 116 },{ 254, 172, 118 },{ 254, 174, 119 },
51  { 254, 176, 120 },{ 254, 178, 122 },{ 254, 180, 123 },{ 254, 182, 124 },{ 254, 183, 126 },{ 254, 185, 127 },{ 254, 187, 129 },
52  { 254, 189, 130 },{ 254, 191, 132 },{ 254, 193, 133 },{ 254, 194, 135 },{ 254, 196, 136 },{ 254, 198, 138 },{ 254, 200, 140 },
53  { 254, 202, 141 },{ 254, 204, 143 },{ 254, 205, 144 },{ 254, 207, 146 },{ 254, 209, 148 },{ 254, 211, 149 },{ 254, 213, 151 },
54  { 254, 215, 153 },{ 254, 216, 154 },{ 253, 218, 156 },{ 253, 220, 158 },{ 253, 222, 160 },{ 253, 224, 161 },{ 253, 226, 163 },
55  { 253, 227, 165 },{ 253, 229, 167 },{ 253, 231, 169 },{ 253, 233, 170 },{ 253, 235, 172 },{ 252, 236, 174 },{ 252, 238, 176 },
56  { 252, 240, 178 },{ 252, 242, 180 },{ 252, 244, 182 },{ 252, 246, 184 },{ 252, 247, 185 },{ 252, 249, 187 },{ 252, 251, 189 },
57  { 252, 253, 191 }
58 };
59 
60 #endif
Magma
static const int Magma[256][3]
Definition: Magma.h:23