Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
Jet.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 #ifndef _lut_Jet_h_
14 #define _lut_Jet_h_
15 
16 // Jet color table as known from Matlab.
17 // The values were procedurally generated by linear interpolation over the following colors:
18 static const int Jet[256][3] = {
19  {0, 0, 127}, // dark blue
20  {0, 0, 131}, {0, 0, 135}, {0, 0, 139}, {0, 0, 143}, {0, 0, 147}, {0, 0, 151}, {0, 0, 155},
21  {0, 0, 159}, {0, 0, 163}, {0, 0, 167}, {0, 0, 171}, {0, 0, 175}, {0, 0, 179}, {0, 0, 183},
22  {0, 0, 187}, {0, 0, 191}, {0, 0, 195}, {0, 0, 199}, {0, 0, 203}, {0, 0, 207}, {0, 0, 211},
23  {0, 0, 215}, {0, 0, 219}, {0, 0, 223}, {0, 0, 227}, {0, 0, 231}, {0, 0, 235}, {0, 0, 239},
24  {0, 0, 243}, {0, 0, 247}, {0, 0, 255}, // blue
25  {0, 3, 255}, {0, 7, 255}, {0, 11, 255}, {0, 15, 255}, {0, 19, 255}, {0, 23, 255}, {0, 27, 255},
26  {0, 31, 255}, {0, 35, 255}, {0, 39, 255}, {0, 43, 255}, {0, 47, 255}, {0, 51, 255}, {0, 55, 255},
27  {0, 59, 255}, {0, 63, 255}, {0, 67, 255}, {0, 71, 255}, {0, 75, 255}, {0, 79, 255}, {0, 83, 255},
28  {0, 87, 255}, {0, 91, 255}, {0, 95, 255}, {0, 99, 255}, {0, 103, 255}, {0, 107, 255}, {0, 111, 255},
29  {0, 115, 255}, {0, 119, 255}, {0, 123, 255}, {0, 127, 255}, // azure
30  {0, 131, 255}, {0, 135, 255}, {0, 139, 255}, {0, 143, 255}, {0, 147, 255}, {0, 151, 255}, {0, 155, 255},
31  {0, 159, 255}, {0, 163, 255}, {0, 167, 255}, {0, 171, 255}, {0, 175, 255}, {0, 179, 255}, {0, 183, 255},
32  {0, 187, 255}, {0, 191, 255}, {0, 195, 255}, {0, 199, 255}, {0, 203, 255}, {0, 207, 255}, {0, 211, 255},
33  {0, 215, 255}, {0, 219, 255}, {0, 223, 255}, {0, 227, 255}, {0, 231, 255}, {0, 235, 255}, {0, 239, 255},
34  {0, 243, 255}, {0, 247, 255}, {0, 251, 255}, {0, 255, 255}, // cyan
35  {3, 255, 251}, {7, 255, 247}, {11, 255, 243}, {15, 255, 239}, {19, 255, 235}, {23, 255, 231}, {27, 255, 227},
36  {31, 255, 223}, {35, 255, 219}, {39, 255, 215}, {43, 255, 211}, {47, 255, 207}, {51, 255, 203}, {55, 255, 199},
37  {59, 255, 195}, {63, 255, 191}, {67, 255, 187}, {71, 255, 183}, {75, 255, 179}, {79, 255, 175}, {83, 255, 171},
38  {87, 255, 167}, {91, 255, 163}, {95, 255, 159}, {99, 255, 155}, {103, 255, 151}, {107, 255, 147}, {111, 255, 143},
39  {115, 255, 139}, {119, 255, 135}, {123, 255, 131}, {127, 255, 127}, // light green
40  {131, 255, 124}, {135, 255, 120}, {139, 255, 116}, {143, 255, 112}, {147, 255, 108}, {151, 255, 104}, {155, 255, 100},
41  {159, 255, 96}, {163, 255, 92}, {167, 255, 88}, {171, 255, 84}, {175, 255, 80}, {179, 255, 76}, {183, 255, 72},
42  {187, 255, 68}, {191, 255, 64}, {195, 255, 60}, {199, 255, 56}, {203, 255, 52}, {207, 255, 48}, {211, 255, 44},
43  {215, 255, 40}, {219, 255, 36}, {223, 255, 32}, {227, 255, 28}, {231, 255, 24}, {235, 255, 20}, {239, 255, 16},
44  {243, 255, 12}, {247, 255, 8}, {251, 255, 4}, {255, 255, 0}, // yellow
45  {255, 251, 0}, {255, 247, 0}, {255, 243, 0}, {255, 239, 0}, {255, 235, 0}, {255, 231, 0}, {255, 227, 0},
46  {255, 223, 0}, {255, 219, 0}, {255, 215, 0}, {255, 211, 0}, {255, 207, 0}, {255, 203, 0}, {255, 199, 0},
47  {255, 195, 0}, {255, 191, 0}, {255, 187, 0}, {255, 183, 0}, {255, 179, 0}, {255, 175, 0}, {255, 171, 0},
48  {255, 167, 0}, {255, 163, 0}, {255, 159, 0}, {255, 155, 0}, {255, 151, 0}, {255, 147, 0}, {255, 143, 0},
49  {255, 139, 0}, {255, 135, 0}, {255, 131, 0}, {255, 127, 0}, // orange
50  {255, 124, 0}, {255, 120, 0}, {255, 116, 0}, {255, 112, 0}, {255, 108, 0}, {255, 104, 0}, {255, 100, 0},
51  {255, 96, 0}, {255, 92, 0}, {255, 88, 0}, {255, 84, 0}, {255, 80, 0}, {255, 76, 0}, {255, 72, 0},
52  {255, 68, 0}, {255, 64, 0}, {255, 60, 0}, {255, 56, 0}, {255, 52, 0}, {255, 48, 0}, {255, 44, 0},
53  {255, 40, 0}, {255, 36, 0}, {255, 32, 0}, {255, 28, 0}, {255, 24, 0}, {255, 20, 0}, {255, 16, 0},
54  {255, 12, 0}, {255, 8, 0}, {255, 4, 0}, {255, 0, 0}, // red
55  {251, 0, 0}, {247, 0, 0}, {243, 0, 0}, {239, 0, 0}, {235, 0, 0}, {231, 0, 0}, {227, 0, 0},
56  {223, 0, 0}, {219, 0, 0}, {215, 0, 0}, {211, 0, 0}, {207, 0, 0}, {203, 0, 0}, {199, 0, 0},
57  {195, 0, 0}, {191, 0, 0}, {187, 0, 0}, {183, 0, 0}, {179, 0, 0}, {175, 0, 0}, {171, 0, 0},
58  {167, 0, 0}, {163, 0, 0}, {159, 0, 0}, {155, 0, 0}, {151, 0, 0}, {147, 0, 0}, {143, 0, 0},
59  {139, 0, 0}, {135, 0, 0}, {131, 0, 0}, {127, 0, 0}}; // dark red
60 
61 #endif
Jet
static const int Jet[256][3]
Definition: Jet.h:18