Home | Develop | Download | Contact
Colormap.hpp
1/*
2 * Colormap.hpp
3 *
4 * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 *
21 */
22
31#ifndef __PDS_COLORMAP_HPP__
32#define __PDS_COLORMAP_HPP__
33
34#include <iostream>
35#include <cstring>
36#include <cmath>
37#include <ctime>
38
39
50namespace Pds{
51namespace Colormap{
52
66 const unsigned char Gray[256][3]=
67 {
68 { 0, 0, 0},
69 { 1, 1, 1},
70 { 2, 2, 2},
71 { 3, 3, 3},
72 { 4, 4, 4},
73 { 5, 5, 5},
74 { 6, 6, 6},
75 { 7, 7, 7},
76 { 8, 8, 8},
77 { 9, 9, 9},
78 { 10, 10, 10},
79 { 11, 11, 11},
80 { 12, 12, 12},
81 { 13, 13, 13},
82 { 14, 14, 14},
83 { 15, 15, 15},
84 { 16, 16, 16},
85 { 17, 17, 17},
86 { 18, 18, 18},
87 { 19, 19, 19},
88 { 20, 20, 20},
89 { 21, 21, 21},
90 { 22, 22, 22},
91 { 23, 23, 23},
92 { 24, 24, 24},
93 { 25, 25, 25},
94 { 26, 26, 26},
95 { 27, 27, 27},
96 { 28, 28, 28},
97 { 29, 29, 29},
98 { 30, 30, 30},
99 { 31, 31, 31},
100 { 32, 32, 32},
101 { 33, 33, 33},
102 { 34, 34, 34},
103 { 35, 35, 35},
104 { 36, 36, 36},
105 { 37, 37, 37},
106 { 37, 37, 37},
107 { 38, 38, 38},
108 { 39, 39, 39},
109 { 41, 41, 41},
110 { 42, 42, 42},
111 { 43, 43, 43},
112 { 44, 44, 44},
113 { 46, 46, 46},
114 { 47, 47, 47},
115 { 48, 48, 48},
116 { 48, 48, 48},
117 { 49, 49, 49},
118 { 50, 50, 50},
119 { 51, 51, 51},
120 { 52, 52, 52},
121 { 53, 53, 53},
122 { 54, 54, 54},
123 { 55, 55, 55},
124 { 56, 56, 56},
125 { 57, 57, 57},
126 { 58, 58, 58},
127 { 59, 59, 59},
128 { 60, 60, 60},
129 { 61, 61, 61},
130 { 62, 62, 62},
131 { 63, 63, 63},
132 { 64, 64, 64},
133 { 65, 65, 65},
134 { 66, 66, 66},
135 { 67, 67, 67},
136 { 68, 68, 68},
137 { 69, 69, 69},
138 { 70, 70, 70},
139 { 71, 71, 71},
140 { 72, 72, 72},
141 { 73, 73, 73},
142 { 74, 74, 74},
143 { 75, 75, 75},
144 { 76, 76, 76},
145 { 77, 77, 77},
146 { 78, 78, 78},
147 { 79, 79, 79},
148 { 80, 80, 80},
149 { 81, 81, 81},
150 { 82, 82, 82},
151 { 83, 83, 83},
152 { 84, 84, 84},
153 { 85, 85, 85},
154 { 86, 86, 86},
155 { 87, 87, 87},
156 { 88, 88, 88},
157 { 89, 89, 89},
158 { 90, 90, 90},
159 { 91, 91, 91},
160 { 92, 92, 92},
161 { 93, 93, 93},
162 { 94, 94, 94},
163 { 95, 95, 95},
164 { 96, 96, 96},
165 { 97, 97, 97},
166 { 98, 98, 98},
167 { 99, 99, 99},
168 {100,100,100},
169 {101,101,101},
170 {102,102,102},
171 {103,103,103},
172 {104,104,104},
173 {105,105,105},
174 {106,106,106},
175 {107,107,107},
176 {108,108,108},
177 {109,109,109},
178 {110,110,110},
179 {111,111,111},
180 {112,112,112},
181 {113,113,113},
182 {114,114,114},
183 {115,115,115},
184 {116,116,116},
185 {117,117,117},
186 {118,118,118},
187 {119,119,119},
188 {120,120,120},
189 {121,121,121},
190 {122,122,122},
191 {122,122,122},
192 {123,123,123},
193 {124,124,124},
194 {126,126,126},
195 {127,127,127},
196 {128,128,128},
197 {129,129,129},
198 {131,131,131},
199 {132,132,132},
200 {133,133,133},
201 {133,133,133},
202 {134,134,134},
203 {135,135,135},
204 {136,136,136},
205 {137,137,137},
206 {138,138,138},
207 {139,139,139},
208 {140,140,140},
209 {141,141,141},
210 {142,142,142},
211 {143,143,143},
212 {144,144,144},
213 {145,145,145},
214 {146,146,146},
215 {147,147,147},
216 {148,148,148},
217 {149,149,149},
218 {150,150,150},
219 {151,151,151},
220 {152,152,152},
221 {153,153,153},
222 {154,154,154},
223 {155,155,155},
224 {156,156,156},
225 {157,157,157},
226 {158,158,158},
227 {159,159,159},
228 {160,160,160},
229 {161,161,161},
230 {162,162,162},
231 {163,163,163},
232 {164,164,164},
233 {165,165,165},
234 {166,166,166},
235 {167,167,167},
236 {168,168,168},
237 {169,169,169},
238 {170,170,170},
239 {171,171,171},
240 {172,172,172},
241 {173,173,173},
242 {174,174,174},
243 {175,175,175},
244 {176,176,176},
245 {177,177,177},
246 {178,178,178},
247 {179,179,179},
248 {180,180,180},
249 {181,181,181},
250 {182,182,182},
251 {183,183,183},
252 {184,184,184},
253 {185,185,185},
254 {186,186,186},
255 {187,187,187},
256 {188,188,188},
257 {189,189,189},
258 {190,190,190},
259 {191,191,191},
260 {192,192,192},
261 {193,193,193},
262 {194,194,194},
263 {195,195,195},
264 {196,196,196},
265 {197,197,197},
266 {198,198,198},
267 {199,199,199},
268 {200,200,200},
269 {201,201,201},
270 {202,202,202},
271 {203,203,203},
272 {204,204,204},
273 {205,205,205},
274 {206,206,206},
275 {207,207,207},
276 {207,207,207},
277 {208,208,208},
278 {209,209,209},
279 {211,211,211},
280 {212,212,212},
281 {213,213,213},
282 {214,214,214},
283 {216,216,216},
284 {217,217,217},
285 {218,218,218},
286 {218,218,218},
287 {219,219,219},
288 {220,220,220},
289 {221,221,221},
290 {222,222,222},
291 {223,223,223},
292 {224,224,224},
293 {225,225,225},
294 {226,226,226},
295 {227,227,227},
296 {228,228,228},
297 {229,229,229},
298 {230,230,230},
299 {231,231,231},
300 {232,232,232},
301 {233,233,233},
302 {234,234,234},
303 {235,235,235},
304 {236,236,236},
305 {237,237,237},
306 {238,238,238},
307 {239,239,239},
308 {240,240,240},
309 {241,241,241},
310 {242,242,242},
311 {243,243,243},
312 {244,244,244},
313 {245,245,245},
314 {246,246,246},
315 {247,247,247},
316 {248,248,248},
317 {249,249,249},
318 {250,250,250},
319 {251,251,251},
320 {252,252,252},
321 {253,253,253},
322 {254,254,254},
323 {255,255,255},
324 };
325
326
335 const unsigned char Jet[256][3]=
336 {
337 { 0, 0,143},
338 { 0, 0,147},
339 { 0, 0,151},
340 { 0, 0,155},
341 { 0, 0,159},
342 { 0, 0,163},
343 { 0, 0,167},
344 { 0, 0,171},
345 { 0, 0,175},
346 { 0, 0,179},
347 { 0, 0,183},
348 { 0, 0,186},
349 { 0, 0,190},
350 { 0, 0,194},
351 { 0, 0,198},
352 { 0, 0,202},
353 { 0, 0,206},
354 { 0, 0,210},
355 { 0, 0,214},
356 { 0, 0,218},
357 { 0, 0,222},
358 { 0, 0,226},
359 { 0, 0,230},
360 { 0, 0,234},
361 { 0, 0,238},
362 { 0, 0,242},
363 { 0, 0,246},
364 { 0, 0,250},
365 { 0, 0,254},
366 { 0, 3,255},
367 { 0, 7,255},
368 { 0, 11,255},
369 { 0, 14,255},
370 { 0, 18,255},
371 { 0, 22,255},
372 { 0, 26,255},
373 { 0, 30,255},
374 { 0, 34,255},
375 { 0, 38,255},
376 { 0, 42,255},
377 { 0, 46,255},
378 { 0, 50,255},
379 { 0, 54,255},
380 { 0, 58,255},
381 { 0, 62,255},
382 { 0, 66,255},
383 { 0, 70,255},
384 { 0, 74,255},
385 { 0, 78,255},
386 { 0, 82,255},
387 { 0, 86,255},
388 { 0, 90,255},
389 { 0, 94,255},
390 { 0, 98,255},
391 { 0,101,255},
392 { 0,105,255},
393 { 0,109,255},
394 { 0,113,255},
395 { 0,117,255},
396 { 0,121,255},
397 { 0,125,255},
398 { 0,129,255},
399 { 0,133,255},
400 { 0,136,255},
401 { 0,140,255},
402 { 0,144,255},
403 { 0,148,255},
404 { 0,152,255},
405 { 0,156,255},
406 { 0,160,255},
407 { 0,164,255},
408 { 0,168,255},
409 { 0,172,255},
410 { 0,176,255},
411 { 0,180,255},
412 { 0,183,255},
413 { 0,187,255},
414 { 0,191,255},
415 { 0,195,255},
416 { 0,199,255},
417 { 0,203,255},
418 { 0,207,255},
419 { 0,211,255},
420 { 0,215,255},
421 { 0,219,255},
422 { 0,223,255},
423 { 0,227,255},
424 { 0,231,255},
425 { 0,235,255},
426 { 0,239,255},
427 { 0,243,255},
428 { 0,247,255},
429 { 0,251,255},
430 { 0,255,255},
431 { 4,255,251},
432 { 8,255,247},
433 { 11,255,244},
434 { 15,255,240},
435 { 19,255,236},
436 { 23,255,232},
437 { 27,255,228},
438 { 31,255,224},
439 { 35,255,220},
440 { 39,255,216},
441 { 43,255,212},
442 { 47,255,208},
443 { 51,255,204},
444 { 55,255,200},
445 { 59,255,196},
446 { 63,255,192},
447 { 67,255,188},
448 { 71,255,184},
449 { 75,255,180},
450 { 79,255,176},
451 { 83,255,172},
452 { 87,255,168},
453 { 91,255,164},
454 { 94,255,161},
455 { 98,255,157},
456 {102,255,153},
457 {106,255,149},
458 {110,255,145},
459 {114,255,141},
460 {118,255,137},
461 {122,255,133},
462 {126,255,130},
463 {130,255,126},
464 {134,255,122},
465 {137,255,118},
466 {141,255,114},
467 {145,255,110},
468 {149,255,106},
469 {153,255,102},
470 {157,255, 98},
471 {161,255, 94},
472 {165,255, 90},
473 {169,255, 86},
474 {173,255, 82},
475 {177,255, 78},
476 {180,255, 75},
477 {184,255, 71},
478 {188,255, 67},
479 {192,255, 63},
480 {196,255, 59},
481 {200,255, 55},
482 {204,255, 51},
483 {208,255, 47},
484 {212,255, 43},
485 {216,255, 39},
486 {220,255, 35},
487 {224,255, 31},
488 {228,255, 27},
489 {232,255, 23},
490 {236,255, 19},
491 {240,255, 15},
492 {244,255, 11},
493 {248,255, 7},
494 {252,255, 3},
495 {255,254, 0},
496 {255,250, 0},
497 {255,247, 0},
498 {255,243, 0},
499 {255,239, 0},
500 {255,235, 0},
501 {255,231, 0},
502 {255,227, 0},
503 {255,223, 0},
504 {255,219, 0},
505 {255,215, 0},
506 {255,211, 0},
507 {255,207, 0},
508 {255,203, 0},
509 {255,199, 0},
510 {255,195, 0},
511 {255,191, 0},
512 {255,187, 0},
513 {255,183, 0},
514 {255,179, 0},
515 {255,175, 0},
516 {255,171, 0},
517 {255,167, 0},
518 {255,164, 0},
519 {255,160, 0},
520 {255,156, 0},
521 {255,152, 0},
522 {255,148, 0},
523 {255,144, 0},
524 {255,140, 0},
525 {255,136, 0},
526 {255,133, 0},
527 {255,129, 0},
528 {255,125, 0},
529 {255,121, 0},
530 {255,117, 0},
531 {255,113, 0},
532 {255,109, 0},
533 {255,105, 0},
534 {255,101, 0},
535 {255, 97, 0},
536 {255, 93, 0},
537 {255, 89, 0},
538 {255, 85, 0},
539 {255, 82, 0},
540 {255, 78, 0},
541 {255, 74, 0},
542 {255, 70, 0},
543 {255, 66, 0},
544 {255, 62, 0},
545 {255, 58, 0},
546 {255, 54, 0},
547 {255, 50, 0},
548 {255, 46, 0},
549 {255, 42, 0},
550 {255, 38, 0},
551 {255, 34, 0},
552 {255, 30, 0},
553 {255, 26, 0},
554 {255, 22, 0},
555 {255, 18, 0},
556 {255, 14, 0},
557 {255, 10, 0},
558 {255, 6, 0},
559 {255, 2, 0},
560 {253, 0, 0},
561 {250, 0, 0},
562 {246, 0, 0},
563 {242, 0, 0},
564 {238, 0, 0},
565 {234, 0, 0},
566 {230, 0, 0},
567 {226, 0, 0},
568 {222, 0, 0},
569 {218, 0, 0},
570 {214, 0, 0},
571 {210, 0, 0},
572 {206, 0, 0},
573 {202, 0, 0},
574 {198, 0, 0},
575 {194, 0, 0},
576 {190, 0, 0},
577 {186, 0, 0},
578 {182, 0, 0},
579 {178, 0, 0},
580 {174, 0, 0},
581 {170, 0, 0},
582 {167, 0, 0},
583 {163, 0, 0},
584 {159, 0, 0},
585 {155, 0, 0},
586 {151, 0, 0},
587 {147, 0, 0},
588 {143, 0, 0},
589 {139, 0, 0},
590 {135, 0, 0},
591 {132, 0, 0},
592 {128, 0, 0},
593 };
594
595
604 const unsigned char Hot[256][3]=
605 {
606 { 11, 0, 0},
607 { 13, 0, 0},
608 { 16, 0, 0},
609 { 18, 0, 0},
610 { 21, 0, 0},
611 { 24, 0, 0},
612 { 26, 0, 0},
613 { 29, 0, 0},
614 { 32, 0, 0},
615 { 34, 0, 0},
616 { 37, 0, 0},
617 { 40, 0, 0},
618 { 43, 0, 0},
619 { 45, 0, 0},
620 { 48, 0, 0},
621 { 50, 0, 0},
622 { 53, 0, 0},
623 { 55, 0, 0},
624 { 58, 0, 0},
625 { 61, 0, 0},
626 { 63, 0, 0},
627 { 66, 0, 0},
628 { 68, 0, 0},
629 { 71, 0, 0},
630 { 73, 0, 0},
631 { 76, 0, 0},
632 { 79, 0, 0},
633 { 81, 0, 0},
634 { 84, 0, 0},
635 { 87, 0, 0},
636 { 90, 0, 0},
637 { 92, 0, 0},
638 { 95, 0, 0},
639 { 98, 0, 0},
640 {100, 0, 0},
641 {102, 0, 0},
642 {105, 0, 0},
643 {108, 0, 0},
644 {110, 0, 0},
645 {113, 0, 0},
646 {116, 0, 0},
647 {118, 0, 0},
648 {121, 0, 0},
649 {124, 0, 0},
650 {127, 0, 0},
651 {129, 0, 0},
652 {132, 0, 0},
653 {134, 0, 0},
654 {137, 0, 0},
655 {139, 0, 0},
656 {142, 0, 0},
657 {145, 0, 0},
658 {147, 0, 0},
659 {150, 0, 0},
660 {152, 0, 0},
661 {155, 0, 0},
662 {157, 0, 0},
663 {160, 0, 0},
664 {163, 0, 0},
665 {165, 0, 0},
666 {168, 0, 0},
667 {171, 0, 0},
668 {173, 0, 0},
669 {176, 0, 0},
670 {179, 0, 0},
671 {182, 0, 0},
672 {184, 0, 0},
673 {187, 0, 0},
674 {189, 0, 0},
675 {192, 0, 0},
676 {194, 0, 0},
677 {197, 0, 0},
678 {200, 0, 0},
679 {202, 0, 0},
680 {205, 0, 0},
681 {208, 0, 0},
682 {211, 0, 0},
683 {213, 0, 0},
684 {216, 0, 0},
685 {218, 0, 0},
686 {221, 0, 0},
687 {223, 0, 0},
688 {226, 0, 0},
689 {229, 0, 0},
690 {231, 0, 0},
691 {234, 0, 0},
692 {236, 0, 0},
693 {239, 0, 0},
694 {241, 0, 0},
695 {244, 0, 0},
696 {247, 0, 0},
697 {249, 0, 0},
698 {252, 0, 0},
699 {255, 0, 0},
700 {255, 2, 0},
701 {255, 5, 0},
702 {255, 8, 0},
703 {255, 11, 0},
704 {255, 13, 0},
705 {255, 16, 0},
706 {255, 18, 0},
707 {255, 21, 0},
708 {255, 23, 0},
709 {255, 26, 0},
710 {255, 29, 0},
711 {255, 31, 0},
712 {255, 34, 0},
713 {255, 37, 0},
714 {255, 40, 0},
715 {255, 42, 0},
716 {255, 45, 0},
717 {255, 47, 0},
718 {255, 50, 0},
719 {255, 52, 0},
720 {255, 55, 0},
721 {255, 58, 0},
722 {255, 60, 0},
723 {255, 63, 0},
724 {255, 66, 0},
725 {255, 68, 0},
726 {255, 70, 0},
727 {255, 73, 0},
728 {255, 76, 0},
729 {255, 78, 0},
730 {255, 81, 0},
731 {255, 84, 0},
732 {255, 86, 0},
733 {255, 89, 0},
734 {255, 92, 0},
735 {255, 95, 0},
736 {255, 97, 0},
737 {255,100, 0},
738 {255,102, 0},
739 {255,105, 0},
740 {255,107, 0},
741 {255,110, 0},
742 {255,113, 0},
743 {255,115, 0},
744 {255,118, 0},
745 {255,121, 0},
746 {255,123, 0},
747 {255,126, 0},
748 {255,129, 0},
749 {255,131, 0},
750 {255,134, 0},
751 {255,136, 0},
752 {255,139, 0},
753 {255,141, 0},
754 {255,144, 0},
755 {255,147, 0},
756 {255,150, 0},
757 {255,152, 0},
758 {255,155, 0},
759 {255,157, 0},
760 {255,160, 0},
761 {255,162, 0},
762 {255,165, 0},
763 {255,168, 0},
764 {255,170, 0},
765 {255,173, 0},
766 {255,176, 0},
767 {255,179, 0},
768 {255,181, 0},
769 {255,184, 0},
770 {255,186, 0},
771 {255,189, 0},
772 {255,191, 0},
773 {255,194, 0},
774 {255,197, 0},
775 {255,199, 0},
776 {255,202, 0},
777 {255,205, 0},
778 {255,207, 0},
779 {255,210, 0},
780 {255,213, 0},
781 {255,215, 0},
782 {255,218, 0},
783 {255,220, 0},
784 {255,223, 0},
785 {255,225, 0},
786 {255,228, 0},
787 {255,231, 0},
788 {255,234, 0},
789 {255,236, 0},
790 {255,239, 0},
791 {255,241, 0},
792 {255,244, 0},
793 {255,246, 0},
794 {255,249, 0},
795 {255,252, 0},
796 {255,254, 0},
797 {255,255, 3},
798 {255,255, 7},
799 {255,255, 11},
800 {255,255, 15},
801 {255,255, 19},
802 {255,255, 23},
803 {255,255, 27},
804 {255,255, 31},
805 {255,255, 35},
806 {255,255, 39},
807 {255,255, 43},
808 {255,255, 46},
809 {255,255, 50},
810 {255,255, 54},
811 {255,255, 58},
812 {255,255, 62},
813 {255,255, 66},
814 {255,255, 70},
815 {255,255, 74},
816 {255,255, 78},
817 {255,255, 82},
818 {255,255, 86},
819 {255,255, 90},
820 {255,255, 94},
821 {255,255, 98},
822 {255,255,102},
823 {255,255,106},
824 {255,255,110},
825 {255,255,114},
826 {255,255,118},
827 {255,255,122},
828 {255,255,126},
829 {255,255,129},
830 {255,255,133},
831 {255,255,137},
832 {255,255,141},
833 {255,255,144},
834 {255,255,148},
835 {255,255,152},
836 {255,255,156},
837 {255,255,160},
838 {255,255,164},
839 {255,255,168},
840 {255,255,172},
841 {255,255,176},
842 {255,255,180},
843 {255,255,184},
844 {255,255,188},
845 {255,255,192},
846 {255,255,196},
847 {255,255,200},
848 {255,255,204},
849 {255,255,208},
850 {255,255,212},
851 {255,255,215},
852 {255,255,219},
853 {255,255,223},
854 {255,255,227},
855 {255,255,231},
856 {255,255,235},
857 {255,255,239},
858 {255,255,243},
859 {255,255,247},
860 {255,255,251},
861 {255,255,255},
862 };
863
864
873 const unsigned char Bone[256][3]=
874 {
875 { 0, 0, 1},
876 { 1, 1, 2},
877 { 2, 2, 3},
878 { 3, 3, 5},
879 { 4, 4, 6},
880 { 5, 5, 7},
881 { 5, 5, 8},
882 { 6, 6, 10},
883 { 7, 7, 11},
884 { 8, 8, 12},
885 { 9, 9, 13},
886 { 10, 10, 15},
887 { 11, 11, 16},
888 { 12, 12, 17},
889 { 12, 12, 18},
890 { 13, 13, 20},
891 { 14, 14, 21},
892 { 15, 15, 22},
893 { 16, 16, 23},
894 { 17, 17, 24},
895 { 18, 18, 26},
896 { 19, 19, 27},
897 { 19, 19, 28},
898 { 20, 20, 29},
899 { 21, 21, 31},
900 { 22, 22, 32},
901 { 23, 23, 33},
902 { 24, 24, 34},
903 { 25, 25, 35},
904 { 25, 25, 36},
905 { 26, 26, 37},
906 { 27, 27, 38},
907 { 28, 28, 40},
908 { 29, 29, 41},
909 { 30, 30, 42},
910 { 31, 31, 43},
911 { 32, 32, 44},
912 { 32, 32, 46},
913 { 33, 33, 47},
914 { 34, 34, 48},
915 { 35, 35, 49},
916 { 36, 36, 51},
917 { 37, 37, 52},
918 { 37, 37, 53},
919 { 38, 38, 54},
920 { 39, 39, 56},
921 { 40, 40, 57},
922 { 41, 41, 58},
923 { 42, 42, 59},
924 { 43, 43, 61},
925 { 44, 44, 62},
926 { 45, 45, 63},
927 { 46, 46, 64},
928 { 46, 46, 65},
929 { 47, 47, 67},
930 { 48, 48, 68},
931 { 49, 49, 69},
932 { 50, 50, 70},
933 { 51, 51, 71},
934 { 52, 52, 72},
935 { 52, 52, 73},
936 { 53, 53, 74},
937 { 54, 54, 76},
938 { 55, 55, 77},
939 { 56, 56, 78},
940 { 57, 57, 79},
941 { 58, 58, 81},
942 { 59, 59, 82},
943 { 59, 59, 83},
944 { 60, 60, 84},
945 { 61, 61, 85},
946 { 62, 62, 87},
947 { 63, 63, 88},
948 { 64, 64, 89},
949 { 65, 65, 90},
950 { 66, 66, 92},
951 { 66, 66, 93},
952 { 67, 67, 94},
953 { 68, 68, 95},
954 { 69, 69, 97},
955 { 70, 70, 98},
956 { 71, 71, 99},
957 { 72, 72,100},
958 { 73, 73,102},
959 { 73, 73,103},
960 { 74, 74,104},
961 { 75, 75,105},
962 { 76, 76,106},
963 { 77, 77,107},
964 { 78, 78,108},
965 { 79, 79,109},
966 { 79, 79,110},
967 { 80, 80,112},
968 { 81, 81,113},
969 { 82, 82,114},
970 { 83, 83,115},
971 { 84, 85,116},
972 { 85, 86,117},
973 { 86, 87,118},
974 { 87, 88,118},
975 { 88, 90,119},
976 { 89, 91,120},
977 { 90, 92,121},
978 { 90, 93,122},
979 { 91, 94,123},
980 { 92, 96,124},
981 { 93, 97,125},
982 { 94, 98,126},
983 { 95, 99,127},
984 { 96,101,128},
985 { 97,102,129},
986 { 97,103,129},
987 { 98,104,130},
988 { 99,106,131},
989 {100,107,132},
990 {101,108,133},
991 {102,109,134},
992 {103,111,135},
993 {103,112,135},
994 {104,113,136},
995 {105,114,137},
996 {106,115,138},
997 {107,117,139},
998 {108,118,140},
999 {109,119,141},
1000 {110,120,142},
1001 {110,121,142},
1002 {111,122,143},
1003 {112,123,144},
1004 {113,124,145},
1005 {113,126,145},
1006 {114,127,146},
1007 {115,128,147},
1008 {116,129,148},
1009 {117,131,149},
1010 {118,132,150},
1011 {119,133,151},
1012 {120,134,152},
1013 {120,135,152},
1014 {121,137,153},
1015 {122,138,154},
1016 {123,139,155},
1017 {124,140,156},
1018 {125,142,157},
1019 {126,143,158},
1020 {127,144,158},
1021 {128,145,159},
1022 {129,147,160},
1023 {130,148,161},
1024 {130,149,162},
1025 {131,150,163},
1026 {132,152,164},
1027 {133,153,165},
1028 {134,154,165},
1029 {135,155,166},
1030 {136,156,167},
1031 {137,157,168},
1032 {137,158,169},
1033 {138,159,170},
1034 {139,160,171},
1035 {140,162,172},
1036 {141,163,173},
1037 {142,164,174},
1038 {143,165,175},
1039 {144,167,176},
1040 {144,168,176},
1041 {145,169,177},
1042 {146,170,178},
1043 {147,172,179},
1044 {148,173,180},
1045 {149,174,181},
1046 {150,175,182},
1047 {150,176,182},
1048 {151,178,183},
1049 {152,179,184},
1050 {153,180,185},
1051 {154,181,186},
1052 {155,183,187},
1053 {156,184,188},
1054 {157,185,189},
1055 {157,186,189},
1056 {158,188,190},
1057 {159,189,191},
1058 {160,190,192},
1059 {161,191,193},
1060 {162,192,194},
1061 {163,193,195},
1062 {164,194,196},
1063 {164,195,196},
1064 {165,196,197},
1065 {166,198,198},
1066 {167,199,199},
1067 {169,200,200},
1068 {170,201,201},
1069 {172,202,202},
1070 {173,203,203},
1071 {175,203,203},
1072 {176,204,204},
1073 {178,205,205},
1074 {179,206,206},
1075 {180,207,207},
1076 {181,208,208},
1077 {183,209,209},
1078 {184,210,210},
1079 {185,211,211},
1080 {187,212,212},
1081 {188,213,213},
1082 {190,213,213},
1083 {191,214,214},
1084 {192,215,215},
1085 {193,216,216},
1086 {195,217,217},
1087 {196,218,218},
1088 {198,218,218},
1089 {199,219,219},
1090 {201,220,220},
1091 {202,221,221},
1092 {203,222,222},
1093 {204,223,223},
1094 {206,223,223},
1095 {207,224,224},
1096 {209,225,225},
1097 {210,226,226},
1098 {211,227,227},
1099 {213,228,228},
1100 {214,229,229},
1101 {215,230,230},
1102 {216,230,230},
1103 {218,231,231},
1104 {219,232,232},
1105 {221,233,233},
1106 {222,234,234},
1107 {224,235,235},
1108 {225,236,236},
1109 {226,236,236},
1110 {227,237,237},
1111 {229,238,238},
1112 {230,239,239},
1113 {232,240,240},
1114 {233,241,241},
1115 {234,242,242},
1116 {236,243,243},
1117 {237,243,243},
1118 {238,244,244},
1119 {240,245,245},
1120 {241,246,246},
1121 {243,247,247},
1122 {244,248,248},
1123 {245,249,249},
1124 {247,250,250},
1125 {248,250,250},
1126 {249,251,251},
1127 {251,252,252},
1128 {252,253,253},
1129 {254,254,254},
1130 {255,255,255},
1131 };
1132
1133
1142 const unsigned char Jolly[256][3]=
1143 {
1144 { 0, 0, 0},
1145 { 0, 0, 3},
1146 { 0, 0, 6},
1147 { 0, 0, 9},
1148 { 0, 0, 12},
1149 { 0, 0, 15},
1150 { 0, 0, 18},
1151 { 0, 0, 21},
1152 { 0, 0, 24},
1153 { 0, 0, 27},
1154 { 0, 0, 30},
1155 { 0, 0, 33},
1156 { 0, 0, 36},
1157 { 0, 0, 39},
1158 { 0, 0, 42},
1159 { 0, 0, 45},
1160 { 0, 0, 48},
1161 { 0, 0, 51},
1162 { 0, 0, 54},
1163 { 0, 0, 57},
1164 { 0, 0, 60},
1165 { 0, 0, 63},
1166 { 0, 0, 66},
1167 { 0, 0, 69},
1168 { 0, 0, 72},
1169 { 0, 0, 75},
1170 { 0, 0, 78},
1171 { 0, 0, 81},
1172 { 0, 0, 84},
1173 { 0, 0, 87},
1174 { 0, 0, 90},
1175 { 0, 0, 93},
1176 { 0, 0, 96},
1177 { 0, 0, 99},
1178 { 0, 0,102},
1179 { 0, 0,105},
1180 { 0, 0,108},
1181 { 0, 0,111},
1182 { 0, 0,114},
1183 { 0, 0,117},
1184 { 0, 0,120},
1185 { 0, 0,123},
1186 { 0, 0,126},
1187 { 0, 0,129},
1188 { 0, 0,132},
1189 { 0, 0,135},
1190 { 0, 0,138},
1191 { 0, 0,141},
1192 { 0, 0,144},
1193 { 0, 0,147},
1194 { 0, 0,150},
1195 { 0, 0,153},
1196 { 0, 0,156},
1197 { 0, 0,159},
1198 { 0, 0,162},
1199 { 0, 0,165},
1200 { 0, 0,168},
1201 { 0, 0,171},
1202 { 0, 0,174},
1203 { 0, 0,177},
1204 { 0, 0,180},
1205 { 0, 0,183},
1206 { 0, 0,186},
1207 { 0, 0,189},
1208 { 0, 0,192},
1209 { 0, 0,195},
1210 { 0, 0,198},
1211 { 0, 0,201},
1212 { 0, 0,204},
1213 { 0, 0,207},
1214 { 0, 0,210},
1215 { 0, 0,213},
1216 { 0, 0,216},
1217 { 0, 0,219},
1218 { 0, 0,222},
1219 { 0, 0,225},
1220 { 0, 0,228},
1221 { 0, 0,231},
1222 { 0, 0,234},
1223 { 0, 0,237},
1224 { 0, 0,240},
1225 { 0, 0,243},
1226 { 0, 0,246},
1227 { 0, 0,249},
1228 { 0, 0,252},
1229 { 0, 0,255},
1230 { 0, 3,252},
1231 { 0, 6,249},
1232 { 0, 9,246},
1233 { 0, 12,243},
1234 { 0, 15,240},
1235 { 0, 18,237},
1236 { 0, 21,234},
1237 { 0, 24,231},
1238 { 0, 27,228},
1239 { 0, 30,225},
1240 { 0, 33,222},
1241 { 0, 36,219},
1242 { 0, 39,216},
1243 { 0, 42,213},
1244 { 0, 45,210},
1245 { 0, 48,207},
1246 { 0, 51,204},
1247 { 0, 54,201},
1248 { 0, 57,198},
1249 { 0, 60,195},
1250 { 0, 63,192},
1251 { 0, 66,189},
1252 { 0, 69,186},
1253 { 0, 72,183},
1254 { 0, 75,180},
1255 { 0, 78,177},
1256 { 0, 81,174},
1257 { 0, 84,171},
1258 { 0, 87,168},
1259 { 0, 90,165},
1260 { 0, 93,162},
1261 { 0, 96,159},
1262 { 0, 99,156},
1263 { 0,102,153},
1264 { 0,105,150},
1265 { 0,108,147},
1266 { 0,111,144},
1267 { 0,114,141},
1268 { 0,117,138},
1269 { 0,120,135},
1270 { 0,123,132},
1271 { 0,126,129},
1272 { 0,129,126},
1273 { 0,132,123},
1274 { 0,135,120},
1275 { 0,138,117},
1276 { 0,141,114},
1277 { 0,144,111},
1278 { 0,147,108},
1279 { 0,150,105},
1280 { 0,153,102},
1281 { 0,156, 99},
1282 { 0,159, 96},
1283 { 0,162, 93},
1284 { 0,165, 90},
1285 { 0,168, 87},
1286 { 0,171, 84},
1287 { 0,174, 81},
1288 { 0,177, 78},
1289 { 0,180, 75},
1290 { 0,183, 72},
1291 { 0,186, 69},
1292 { 0,189, 66},
1293 { 0,192, 63},
1294 { 0,195, 60},
1295 { 0,198, 57},
1296 { 0,201, 54},
1297 { 0,204, 51},
1298 { 0,207, 48},
1299 { 0,210, 45},
1300 { 0,213, 42},
1301 { 0,216, 39},
1302 { 0,219, 36},
1303 { 0,222, 33},
1304 { 0,225, 30},
1305 { 0,228, 27},
1306 { 0,231, 24},
1307 { 0,234, 21},
1308 { 0,237, 18},
1309 { 0,240, 15},
1310 { 0,243, 12},
1311 { 0,246, 9},
1312 { 0,249, 6},
1313 { 0,252, 3},
1314 { 0,255, 0},
1315 { 3,252, 0},
1316 { 6,249, 0},
1317 { 9,246, 0},
1318 { 12,243, 0},
1319 { 15,240, 0},
1320 { 18,237, 0},
1321 { 21,234, 0},
1322 { 24,231, 0},
1323 { 27,228, 0},
1324 { 30,225, 0},
1325 { 33,222, 0},
1326 { 36,219, 0},
1327 { 39,216, 0},
1328 { 42,213, 0},
1329 { 45,210, 0},
1330 { 48,207, 0},
1331 { 51,204, 0},
1332 { 54,201, 0},
1333 { 57,198, 0},
1334 { 60,195, 0},
1335 { 63,192, 0},
1336 { 66,189, 0},
1337 { 69,186, 0},
1338 { 72,183, 0},
1339 { 75,180, 0},
1340 { 78,177, 0},
1341 { 81,174, 0},
1342 { 84,171, 0},
1343 { 87,168, 0},
1344 { 90,165, 0},
1345 { 93,162, 0},
1346 { 96,159, 0},
1347 { 99,156, 0},
1348 {102,153, 0},
1349 {105,150, 0},
1350 {108,147, 0},
1351 {111,144, 0},
1352 {114,141, 0},
1353 {117,138, 0},
1354 {120,135, 0},
1355 {123,132, 0},
1356 {126,129, 0},
1357 {129,126, 0},
1358 {132,123, 0},
1359 {135,120, 0},
1360 {138,117, 0},
1361 {141,114, 0},
1362 {144,111, 0},
1363 {147,108, 0},
1364 {150,105, 0},
1365 {153,102, 0},
1366 {156, 99, 0},
1367 {159, 96, 0},
1368 {162, 93, 0},
1369 {165, 90, 0},
1370 {168, 87, 0},
1371 {171, 84, 0},
1372 {174, 81, 0},
1373 {177, 78, 0},
1374 {180, 75, 0},
1375 {183, 72, 0},
1376 {186, 69, 0},
1377 {189, 66, 0},
1378 {192, 63, 0},
1379 {195, 60, 0},
1380 {198, 57, 0},
1381 {201, 54, 0},
1382 {204, 51, 0},
1383 {207, 48, 0},
1384 {210, 45, 0},
1385 {213, 42, 0},
1386 {216, 39, 0},
1387 {219, 36, 0},
1388 {222, 33, 0},
1389 {225, 30, 0},
1390 {228, 27, 0},
1391 {231, 24, 0},
1392 {234, 21, 0},
1393 {237, 18, 0},
1394 {240, 15, 0},
1395 {243, 12, 0},
1396 {246, 9, 0},
1397 {249, 6, 0},
1398 {252, 3, 0},
1399 {255, 0, 0},
1400 };
1401
1402
1411 const unsigned char Steps[256][3]=
1412 {
1413 { 0, 0, 0},
1414 { 0, 0, 4},
1415 { 0, 0, 8},
1416 { 0, 0, 12},
1417 { 0, 0, 16},
1418 { 0, 0, 20},
1419 { 0, 0, 24},
1420 { 0, 0, 28},
1421 { 0, 0, 32},
1422 { 0, 0, 36},
1423 { 0, 0, 40},
1424 { 0, 0, 45},
1425 { 0, 0, 49},
1426 { 0, 0, 53},
1427 { 0, 0, 57},
1428 { 0, 0, 61},
1429 { 0, 0, 65},
1430 { 0, 0, 69},
1431 { 0, 0, 73},
1432 { 0, 0, 77},
1433 { 0, 0, 81},
1434 { 0, 0, 85},
1435 { 0, 0, 89},
1436 { 0, 0, 93},
1437 { 0, 0, 97},
1438 { 0, 0,101},
1439 { 0, 0,105},
1440 { 0, 0,109},
1441 { 0, 0,113},
1442 { 0, 0,117},
1443 { 0, 0,121},
1444 { 0, 0,125},
1445 { 0, 0,130},
1446 { 0, 0,134},
1447 { 0, 0,138},
1448 { 0, 0,142},
1449 { 0, 0,146},
1450 { 0, 0,150},
1451 { 0, 0,154},
1452 { 0, 0,158},
1453 { 0, 0,162},
1454 { 0, 0,166},
1455 { 0, 0,170},
1456 { 0, 0,174},
1457 { 0, 0,178},
1458 { 0, 0,182},
1459 { 0, 0,186},
1460 { 0, 0,190},
1461 { 0, 0,194},
1462 { 0, 0,198},
1463 { 0, 0,202},
1464 { 0, 0,206},
1465 { 0, 0,210},
1466 { 0, 0,215},
1467 { 0, 0,219},
1468 { 0, 0,223},
1469 { 0, 0,227},
1470 { 0, 0,231},
1471 { 0, 0,235},
1472 { 0, 0,239},
1473 { 0, 0,243},
1474 { 0, 0,247},
1475 { 0, 0,251},
1476 { 0, 0,255},
1477 { 0, 0,255},
1478 { 0, 4,255},
1479 { 0, 8,255},
1480 { 0, 12,255},
1481 { 0, 16,255},
1482 { 0, 20,255},
1483 { 0, 24,255},
1484 { 0, 28,255},
1485 { 0, 32,255},
1486 { 0, 36,255},
1487 { 0, 40,255},
1488 { 0, 45,255},
1489 { 0, 49,255},
1490 { 0, 53,255},
1491 { 0, 57,255},
1492 { 0, 61,255},
1493 { 0, 65,255},
1494 { 0, 69,255},
1495 { 0, 73,255},
1496 { 0, 77,255},
1497 { 0, 81,255},
1498 { 0, 85,255},
1499 { 0, 89,255},
1500 { 0, 93,255},
1501 { 0, 97,255},
1502 { 0,101,255},
1503 { 0,105,255},
1504 { 0,109,255},
1505 { 0,113,255},
1506 { 0,117,255},
1507 { 0,121,255},
1508 { 0,125,255},
1509 { 0,130,255},
1510 { 0,134,255},
1511 { 0,138,255},
1512 { 0,142,255},
1513 { 0,146,255},
1514 { 0,150,255},
1515 { 0,154,255},
1516 { 0,158,255},
1517 { 0,162,255},
1518 { 0,166,255},
1519 { 0,170,255},
1520 { 0,174,255},
1521 { 0,178,255},
1522 { 0,182,255},
1523 { 0,186,255},
1524 { 0,190,255},
1525 { 0,194,255},
1526 { 0,198,255},
1527 { 0,202,255},
1528 { 0,206,255},
1529 { 0,210,255},
1530 { 0,215,255},
1531 { 0,219,255},
1532 { 0,223,255},
1533 { 0,227,255},
1534 { 0,231,255},
1535 { 0,235,255},
1536 { 0,239,255},
1537 { 0,243,255},
1538 { 0,247,255},
1539 { 0,251,255},
1540 { 0,255,255},
1541 { 0,255,255},
1542 { 4,255,251},
1543 { 8,255,247},
1544 { 12,255,243},
1545 { 16,255,239},
1546 { 20,255,235},
1547 { 24,255,231},
1548 { 28,255,227},
1549 { 32,255,223},
1550 { 36,255,219},
1551 { 40,255,215},
1552 { 45,255,210},
1553 { 49,255,206},
1554 { 53,255,202},
1555 { 57,255,198},
1556 { 61,255,194},
1557 { 65,255,190},
1558 { 69,255,186},
1559 { 73,255,182},
1560 { 77,255,178},
1561 { 81,255,174},
1562 { 85,255,170},
1563 { 89,255,166},
1564 { 93,255,162},
1565 { 97,255,158},
1566 {101,255,154},
1567 {105,255,150},
1568 {109,255,146},
1569 {113,255,142},
1570 {117,255,138},
1571 {121,255,134},
1572 {125,255,130},
1573 {130,255,125},
1574 {134,255,121},
1575 {138,255,117},
1576 {142,255,113},
1577 {146,255,109},
1578 {150,255,105},
1579 {154,255,101},
1580 {158,255, 97},
1581 {162,255, 93},
1582 {166,255, 89},
1583 {170,255, 85},
1584 {174,255, 81},
1585 {178,255, 77},
1586 {182,255, 73},
1587 {186,255, 69},
1588 {190,255, 65},
1589 {194,255, 61},
1590 {198,255, 57},
1591 {202,255, 53},
1592 {206,255, 49},
1593 {210,255, 45},
1594 {215,255, 40},
1595 {219,255, 36},
1596 {223,255, 32},
1597 {227,255, 28},
1598 {231,255, 24},
1599 {235,255, 20},
1600 {239,255, 16},
1601 {243,255, 12},
1602 {247,255, 8},
1603 {251,255, 4},
1604 {255,255, 0},
1605 {255,255, 0},
1606 {255,251, 0},
1607 {255,247, 0},
1608 {255,243, 0},
1609 {255,239, 0},
1610 {255,235, 0},
1611 {255,231, 0},
1612 {255,227, 0},
1613 {255,223, 0},
1614 {255,219, 0},
1615 {255,215, 0},
1616 {255,210, 0},
1617 {255,206, 0},
1618 {255,202, 0},
1619 {255,198, 0},
1620 {255,194, 0},
1621 {255,190, 0},
1622 {255,186, 0},
1623 {255,182, 0},
1624 {255,178, 0},
1625 {255,174, 0},
1626 {255,170, 0},
1627 {255,166, 0},
1628 {255,162, 0},
1629 {255,158, 0},
1630 {255,154, 0},
1631 {255,150, 0},
1632 {255,146, 0},
1633 {255,142, 0},
1634 {255,138, 0},
1635 {255,134, 0},
1636 {255,130, 0},
1637 {255,125, 0},
1638 {255,121, 0},
1639 {255,117, 0},
1640 {255,113, 0},
1641 {255,109, 0},
1642 {255,105, 0},
1643 {255,101, 0},
1644 {255, 97, 0},
1645 {255, 93, 0},
1646 {255, 89, 0},
1647 {255, 85, 0},
1648 {255, 81, 0},
1649 {255, 77, 0},
1650 {255, 73, 0},
1651 {255, 69, 0},
1652 {255, 65, 0},
1653 {255, 61, 0},
1654 {255, 57, 0},
1655 {255, 53, 0},
1656 {255, 49, 0},
1657 {255, 45, 0},
1658 {255, 40, 0},
1659 {255, 36, 0},
1660 {255, 32, 0},
1661 {255, 28, 0},
1662 {255, 24, 0},
1663 {255, 20, 0},
1664 {255, 16, 0},
1665 {255, 12, 0},
1666 {255, 8, 0},
1667 {255, 4, 0},
1668 {255, 0, 0}
1669 };
1670
1678}
1679}
1680
1686#endif /* __PDS_COLORMAP_HPP__ */
const unsigned char Jet[256][3]
Definition: Colormap.hpp:335
const unsigned char Gray[256][3]
Definition: Colormap.hpp:66
const unsigned char Jolly[256][3]
Definition: Colormap.hpp:1142
const unsigned char Steps[256][3]
Definition: Colormap.hpp:1411
const unsigned char Hot[256][3]
Definition: Colormap.hpp:604
const unsigned char Bone[256][3]
Definition: Colormap.hpp:873
std::string Colormap
Corlormap usado en el código octave. Por defecto:
Nombre de espacio para Pds (Procesamiento Digital de Senales)
Definition: AbstractRV.hpp:42

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed