Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _lut_Jet_h_
18 #define _lut_Jet_h_
19 
20 // Jet color table as known from Matlab.
21 // The values were procedurally generated by linear interpolation over the following colors:
22 static const int Jet[256][3] = {
23  {0, 0, 127}, // dark blue
24  {0, 0, 131}, {0, 0, 135}, {0, 0, 139}, {0, 0, 143}, {0, 0, 147}, {0, 0, 151}, {0, 0, 155},
25  {0, 0, 159}, {0, 0, 163}, {0, 0, 167}, {0, 0, 171}, {0, 0, 175}, {0, 0, 179}, {0, 0, 183},
26  {0, 0, 187}, {0, 0, 191}, {0, 0, 195}, {0, 0, 199}, {0, 0, 203}, {0, 0, 207}, {0, 0, 211},
27  {0, 0, 215}, {0, 0, 219}, {0, 0, 223}, {0, 0, 227}, {0, 0, 231}, {0, 0, 235}, {0, 0, 239},
28  {0, 0, 243}, {0, 0, 247}, {0, 0, 255}, // blue
29  {0, 3, 255}, {0, 7, 255}, {0, 11, 255}, {0, 15, 255}, {0, 19, 255}, {0, 23, 255}, {0, 27, 255},
30  {0, 31, 255}, {0, 35, 255}, {0, 39, 255}, {0, 43, 255}, {0, 47, 255}, {0, 51, 255}, {0, 55, 255},
31  {0, 59, 255}, {0, 63, 255}, {0, 67, 255}, {0, 71, 255}, {0, 75, 255}, {0, 79, 255}, {0, 83, 255},
32  {0, 87, 255}, {0, 91, 255}, {0, 95, 255}, {0, 99, 255}, {0, 103, 255}, {0, 107, 255}, {0, 111, 255},
33  {0, 115, 255}, {0, 119, 255}, {0, 123, 255}, {0, 127, 255}, // azure
34  {0, 131, 255}, {0, 135, 255}, {0, 139, 255}, {0, 143, 255}, {0, 147, 255}, {0, 151, 255}, {0, 155, 255},
35  {0, 159, 255}, {0, 163, 255}, {0, 167, 255}, {0, 171, 255}, {0, 175, 255}, {0, 179, 255}, {0, 183, 255},
36  {0, 187, 255}, {0, 191, 255}, {0, 195, 255}, {0, 199, 255}, {0, 203, 255}, {0, 207, 255}, {0, 211, 255},
37  {0, 215, 255}, {0, 219, 255}, {0, 223, 255}, {0, 227, 255}, {0, 231, 255}, {0, 235, 255}, {0, 239, 255},
38  {0, 243, 255}, {0, 247, 255}, {0, 251, 255}, {0, 255, 255}, // cyan
39  {3, 255, 251}, {7, 255, 247}, {11, 255, 243}, {15, 255, 239}, {19, 255, 235}, {23, 255, 231}, {27, 255, 227},
40  {31, 255, 223}, {35, 255, 219}, {39, 255, 215}, {43, 255, 211}, {47, 255, 207}, {51, 255, 203}, {55, 255, 199},
41  {59, 255, 195}, {63, 255, 191}, {67, 255, 187}, {71, 255, 183}, {75, 255, 179}, {79, 255, 175}, {83, 255, 171},
42  {87, 255, 167}, {91, 255, 163}, {95, 255, 159}, {99, 255, 155}, {103, 255, 151}, {107, 255, 147}, {111, 255, 143},
43  {115, 255, 139}, {119, 255, 135}, {123, 255, 131}, {127, 255, 127}, // light green
44  {131, 255, 124}, {135, 255, 120}, {139, 255, 116}, {143, 255, 112}, {147, 255, 108}, {151, 255, 104}, {155, 255, 100},
45  {159, 255, 96}, {163, 255, 92}, {167, 255, 88}, {171, 255, 84}, {175, 255, 80}, {179, 255, 76}, {183, 255, 72},
46  {187, 255, 68}, {191, 255, 64}, {195, 255, 60}, {199, 255, 56}, {203, 255, 52}, {207, 255, 48}, {211, 255, 44},
47  {215, 255, 40}, {219, 255, 36}, {223, 255, 32}, {227, 255, 28}, {231, 255, 24}, {235, 255, 20}, {239, 255, 16},
48  {243, 255, 12}, {247, 255, 8}, {251, 255, 4}, {255, 255, 0}, // yellow
49  {255, 251, 0}, {255, 247, 0}, {255, 243, 0}, {255, 239, 0}, {255, 235, 0}, {255, 231, 0}, {255, 227, 0},
50  {255, 223, 0}, {255, 219, 0}, {255, 215, 0}, {255, 211, 0}, {255, 207, 0}, {255, 203, 0}, {255, 199, 0},
51  {255, 195, 0}, {255, 191, 0}, {255, 187, 0}, {255, 183, 0}, {255, 179, 0}, {255, 175, 0}, {255, 171, 0},
52  {255, 167, 0}, {255, 163, 0}, {255, 159, 0}, {255, 155, 0}, {255, 151, 0}, {255, 147, 0}, {255, 143, 0},
53  {255, 139, 0}, {255, 135, 0}, {255, 131, 0}, {255, 127, 0}, // orange
54  {255, 124, 0}, {255, 120, 0}, {255, 116, 0}, {255, 112, 0}, {255, 108, 0}, {255, 104, 0}, {255, 100, 0},
55  {255, 96, 0}, {255, 92, 0}, {255, 88, 0}, {255, 84, 0}, {255, 80, 0}, {255, 76, 0}, {255, 72, 0},
56  {255, 68, 0}, {255, 64, 0}, {255, 60, 0}, {255, 56, 0}, {255, 52, 0}, {255, 48, 0}, {255, 44, 0},
57  {255, 40, 0}, {255, 36, 0}, {255, 32, 0}, {255, 28, 0}, {255, 24, 0}, {255, 20, 0}, {255, 16, 0},
58  {255, 12, 0}, {255, 8, 0}, {255, 4, 0}, {255, 0, 0}, // red
59  {251, 0, 0}, {247, 0, 0}, {243, 0, 0}, {239, 0, 0}, {235, 0, 0}, {231, 0, 0}, {227, 0, 0},
60  {223, 0, 0}, {219, 0, 0}, {215, 0, 0}, {211, 0, 0}, {207, 0, 0}, {203, 0, 0}, {199, 0, 0},
61  {195, 0, 0}, {191, 0, 0}, {187, 0, 0}, {183, 0, 0}, {179, 0, 0}, {175, 0, 0}, {171, 0, 0},
62  {167, 0, 0}, {163, 0, 0}, {159, 0, 0}, {155, 0, 0}, {151, 0, 0}, {147, 0, 0}, {143, 0, 0},
63  {139, 0, 0}, {135, 0, 0}, {131, 0, 0}, {127, 0, 0}}; // dark red
64 
65 #endif
static const int Jet[256][3]
Definition: Jet.h:22