Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
image_utilities_data.h
Go to the documentation of this file.
1 /****************************************************************************************
2  * SCYLLARUS : C++ HYPERSPECTRAL PROCESSING LIBRARY
3  * image_utilities.h - Image related utility functions.
4  *
5  * This computer code is subject to copyright:
6  * (c) National ICT Australia Limited (NICTA) 2013-2014 All Rights Reserved.
7  *
8  * Jeremy Oorloff, National ICT Australia (NICTA)
9  *
10  ***************************************************************************************/
11 
12 #ifndef IMAGE_UTILITIES_DATA_H_
13 #define IMAGE_UTILITIES_DATA_H_
14 
15 namespace scyl
16 {
17 
18  // Photopic function
19 
20  const int PHOTOPIC_START = 390;
21  const int PHOTOPIC_LENGTH = 441;
22  const int PHOTOPIC_END = 830;
23 
24 
25  const float PHOTOPIC_VALUES[441] =
26  {
27  4.14616e-04,
28  5.02833e-04,
29  6.08499e-04,
30  7.34444e-04,
31  8.83739e-04,
32  1.05965e-03,
33  1.26553e-03,
34  1.50475e-03,
35  1.78049e-03,
36  2.09557e-03,
37  2.45219e-03,
38  2.85222e-03,
39  3.29912e-03,
40  3.79747e-03,
41  4.35277e-03,
42  4.97172e-03,
43  5.66101e-03,
44  6.42161e-03,
45  7.25031e-03,
46  8.14017e-03,
47  9.07986e-03,
48  1.00561e-02,
49  1.10646e-02,
50  1.21052e-02,
51  1.31801e-02,
52  1.42938e-02,
53  1.54500e-02,
54  1.66409e-02,
55  1.78530e-02,
56  1.90702e-02,
57  2.02737e-02,
58  2.14481e-02,
59  2.26004e-02,
60  2.37479e-02,
61  2.49125e-02,
62  2.61211e-02,
63  2.73992e-02,
64  2.87499e-02,
65  3.01691e-02,
66  3.16514e-02,
67  3.31904e-02,
68  3.47791e-02,
69  3.64149e-02,
70  3.80957e-02,
71  3.98184e-02,
72  4.15794e-02,
73  4.33710e-02,
74  4.51718e-02,
75  4.69542e-02,
76  4.86872e-02,
77  5.03366e-02,
78  5.18761e-02,
79  5.33222e-02,
80  5.47060e-02,
81  5.60634e-02,
82  5.74339e-02,
83  5.88511e-02,
84  6.03081e-02,
85  6.17864e-02,
86  6.32657e-02,
87  6.47235e-02,
88  6.61475e-02,
89  6.75726e-02,
90  6.90493e-02,
91  7.06328e-02,
92  7.23834e-02,
93  7.43596e-02,
94  7.65938e-02,
95  7.91144e-02,
96  8.19535e-02,
97  8.51482e-02,
98  8.87266e-02,
99  9.26601e-02,
100  9.68972e-02,
101  1.01375e-01,
102  1.06014e-01,
103  1.10738e-01,
104  1.15511e-01,
105  1.20312e-01,
106  1.25116e-01,
107  1.29896e-01,
108  1.34630e-01,
109  1.39331e-01,
110  1.44023e-01,
111  1.48737e-01,
112  1.53507e-01,
113  1.58364e-01,
114  1.63320e-01,
115  1.68376e-01,
116  1.73537e-01,
117  1.78805e-01,
118  1.84182e-01,
119  1.89656e-01,
120  1.95210e-01,
121  2.00826e-01,
122  2.06483e-01,
123  2.12183e-01,
124  2.18028e-01,
125  2.24159e-01,
126  2.30730e-01,
127  2.37916e-01,
128  2.45871e-01,
129  2.54602e-01,
130  2.64076e-01,
131  2.74249e-01,
132  2.85068e-01,
133  2.96484e-01,
134  3.08501e-01,
135  3.21139e-01,
136  3.34418e-01,
137  3.48354e-01,
138  3.62960e-01,
139  3.78228e-01,
140  3.94136e-01,
141  4.10658e-01,
142  4.27760e-01,
143  4.45399e-01,
144  4.63540e-01,
145  4.82138e-01,
146  5.01143e-01,
147  5.20497e-01,
148  5.40139e-01,
149  5.60021e-01,
150  5.80097e-01,
151  6.00317e-01,
152  6.20626e-01,
153  6.40940e-01,
154  6.61077e-01,
155  6.80813e-01,
156  6.99904e-01,
157  7.18089e-01,
158  7.35159e-01,
159  7.51182e-01,
160  7.66314e-01,
161  7.80735e-01,
162  7.94645e-01,
163  8.08207e-01,
164  8.21382e-01,
165  8.34070e-01,
166  8.46171e-01,
167  8.57580e-01,
168  8.68241e-01,
169  8.78306e-01,
170  8.87991e-01,
171  8.97521e-01,
172  9.07135e-01,
173  9.16995e-01,
174  9.26929e-01,
175  9.36673e-01,
176  9.45948e-01,
177  9.54468e-01,
178  9.61983e-01,
179  9.68439e-01,
180  9.73829e-01,
181  9.78152e-01,
182  9.81411e-01,
183  9.83667e-01,
184  9.85208e-01,
185  9.86381e-01,
186  9.87536e-01,
187  9.89023e-01,
188  9.91081e-01,
189  9.93491e-01,
190  9.95917e-01,
191  9.98021e-01,
192  9.99461e-01,
193  9.99993e-01,
194  9.99756e-01,
195  9.98984e-01,
196  9.97912e-01,
197  9.96774e-01,
198  9.95736e-01,
199  9.94711e-01,
200  9.93553e-01,
201  9.92116e-01,
202  9.90255e-01,
203  9.87860e-01,
204  9.84932e-01,
205  9.81504e-01,
206  9.77603e-01,
207  9.73261e-01,
208  9.68476e-01,
209  9.63137e-01,
210  9.57106e-01,
211  9.50254e-01,
212  9.42457e-01,
213  9.33690e-01,
214  9.24289e-01,
215  9.14671e-01,
216  9.05233e-01,
217  8.96361e-01,
218  8.88307e-01,
219  8.80846e-01,
220  8.73645e-01,
221  8.66376e-01,
222  8.58720e-01,
223  8.50430e-01,
224  8.41505e-01,
225  8.32011e-01,
226  8.22015e-01,
227  8.11587e-01,
228  8.00787e-01,
229  7.89652e-01,
230  7.78205e-01,
231  7.66473e-01,
232  7.54479e-01,
233  7.42247e-01,
234  7.29823e-01,
235  7.17252e-01,
236  7.04582e-01,
237  6.91855e-01,
238  6.79101e-01,
239  6.66285e-01,
240  6.53359e-01,
241  6.40281e-01,
242  6.27007e-01,
243  6.13515e-01,
244  5.99849e-01,
245  5.86068e-01,
246  5.72226e-01,
247  5.58375e-01,
248  5.44554e-01,
249  5.30767e-01,
250  5.17013e-01,
251  5.03289e-01,
252  4.89595e-01,
253  4.75944e-01,
254  4.62396e-01,
255  4.49015e-01,
256  4.35862e-01,
257  4.22990e-01,
258  4.10415e-01,
259  3.98036e-01,
260  3.85730e-01,
261  3.73391e-01,
262  3.60924e-01,
263  3.48286e-01,
264  3.35570e-01,
265  3.22896e-01,
266  3.10370e-01,
267  2.98086e-01,
268  2.86116e-01,
269  2.74482e-01,
270  2.63195e-01,
271  2.52263e-01,
272  2.41690e-01,
273  2.31481e-01,
274  2.21638e-01,
275  2.12162e-01,
276  2.03054e-01,
277  1.94312e-01,
278  1.85923e-01,
279  1.77827e-01,
280  1.69965e-01,
281  1.62284e-01,
282  1.54740e-01,
283  1.47308e-01,
284  1.40017e-01,
285  1.32901e-01,
286  1.25991e-01,
287  1.19312e-01,
288  1.12882e-01,
289  1.06711e-01,
290  1.00805e-01,
291  9.51665e-02,
292  8.97959e-02,
293  8.46904e-02,
294  7.98401e-02,
295  7.52337e-02,
296  7.08606e-02,
297  6.67104e-02,
298  6.27736e-02,
299  5.90418e-02,
300  5.55070e-02,
301  5.21614e-02,
302  4.89970e-02,
303  4.60058e-02,
304  4.31788e-02,
305  4.05075e-02,
306  3.79838e-02,
307  3.55998e-02,
308  3.33486e-02,
309  3.12233e-02,
310  2.92178e-02,
311  2.73260e-02,
312  2.55422e-02,
313  2.38612e-02,
314  2.22786e-02,
315  2.07902e-02,
316  1.93919e-02,
317  1.80794e-02,
318  1.68482e-02,
319  1.56919e-02,
320  1.46045e-02,
321  1.35806e-02,
322  1.26157e-02,
323  1.17070e-02,
324  1.08561e-02,
325  1.00648e-02,
326  9.33338e-03,
327  8.66128e-03,
328  8.04605e-03,
329  7.48113e-03,
330  6.95999e-03,
331  6.47707e-03,
332  6.02768e-03,
333  5.60817e-03,
334  5.21669e-03,
335  4.85179e-03,
336  4.51201e-03,
337  4.19594e-03,
338  3.90206e-03,
339  3.62837e-03,
340  3.37301e-03,
341  3.13432e-03,
342  2.91086e-03,
343  2.70153e-03,
344  2.50580e-03,
345  2.32323e-03,
346  2.15333e-03,
347  1.99556e-03,
348  1.84932e-03,
349  1.71398e-03,
350  1.58890e-03,
351  1.47345e-03,
352  1.36702e-03,
353  1.26895e-03,
354  1.17842e-03,
355  1.09464e-03,
356  1.01694e-03,
357  9.44727e-04,
358  8.77517e-04,
359  8.15044e-04,
360  7.57076e-04,
361  7.03376e-04,
362  6.53705e-04,
363  6.07805e-04,
364  5.65344e-04,
365  5.26005e-04,
366  4.89506e-04,
367  4.55597e-04,
368  4.24055e-04,
369  3.94686e-04,
370  3.67318e-04,
371  3.41794e-04,
372  3.17974e-04,
373  2.95744e-04,
374  2.75056e-04,
375  2.55864e-04,
376  2.38114e-04,
377  2.21745e-04,
378  2.06671e-04,
379  1.92747e-04,
380  1.79831e-04,
381  1.67802e-04,
382  1.56557e-04,
383  1.46017e-04,
384  1.36153e-04,
385  1.26945e-04,
386  1.18367e-04,
387  1.10393e-04,
388  1.02991e-04,
389  9.61184e-05,
390  8.97332e-05,
391  8.37969e-05,
392  7.82744e-05,
393  7.31331e-05,
394  6.83414e-05,
395  6.38704e-05,
396  5.96939e-05,
397  5.57886e-05,
398  5.21351e-05,
399  4.87218e-05,
400  4.55385e-05,
401  4.25744e-05,
402  3.98188e-05,
403  3.72588e-05,
404  3.48747e-05,
405  3.26477e-05,
406  3.05614e-05,
407  2.86018e-05,
408  2.67584e-05,
409  2.50294e-05,
410  2.34137e-05,
411  2.19091e-05,
412  2.05126e-05,
413  1.92190e-05,
414  1.80180e-05,
415  1.68990e-05,
416  1.58531e-05,
417  1.48724e-05,
418  1.39509e-05,
419  1.30853e-05,
420  1.22733e-05,
421  1.15123e-05,
422  1.08000e-05,
423  1.01336e-05,
424  9.50992e-06,
425  8.92563e-06,
426  8.37785e-06,
427  7.86392e-06,
428  7.38154e-06,
429  6.92910e-06,
430  6.50514e-06,
431  6.10822e-06,
432  5.73694e-06,
433  5.38983e-06,
434  5.06527e-06,
435  4.76167e-06,
436  4.47756e-06,
437  4.21160e-06,
438  3.96246e-06,
439  3.72867e-06,
440  3.50888e-06,
441  3.30187e-06,
442  3.10656e-06,
443  2.92212e-06,
444  2.74821e-06,
445  2.58456e-06,
446  2.43087e-06,
447  2.28679e-06,
448  2.15191e-06,
449  2.02566e-06,
450  1.90746e-06,
451  1.79679e-06,
452  1.69315e-06,
453  1.59603e-06,
454  1.50490e-06,
455  1.41925e-06,
456  1.33860e-06,
457  1.26256e-06,
458  1.19077e-06,
459  1.12303e-06,
460  1.05915e-06,
461  9.98951e-07,
462  9.42251e-07,
463  8.88880e-07,
464  8.38669e-07,
465  7.91454e-07,
466  7.47077e-07,
467  7.05386e-07
468  };
469 
470  // Camera Sensitivity
471 
473 
475  {
476  380, 390, 400, 410, 420, 430,
477  440, 450, 460, 470, 480, 490,
478  500, 510, 520, 530, 540, 550,
479  560, 570, 580, 590, 600, 610,
480  620, 630, 640, 650, 660, 670,
481  680, 690, 700, 710, 720
482  };
483 
484  const float CAMERA_SENSITIVITY[35][3] =
485  {
486  0, 0, 0,
487  0.03, 0.005, 0,
488  0.075, 0.01, 0.01,
489  0.145, 0.025, 0.01,
490  0.24, 0.04, 0.01,
491  0.355, 0.05, 0.01,
492  0.475, 0.075, 0.01,
493  0.675, 0.11, 0.01,
494  0.72, 0.18, 0.01,
495  0.735, 0.28, 0.01,
496  0.7, 0.375, 0.01,
497  0.595, 0.44, 0.01,
498  0.49, 0.566, 0.015,
499  0.36, 0.775, 0.015,
500  0.233, 0.86, 0.02,
501  0.12, 0.99, 0.015,
502  0.04, 0.98, 0.015,
503  0.0166, 0.91, 0.01,
504  0.005, 0.78, 0.05,
505  0, 0.6, 0.23,
506  0, 0.4, 0.46,
507  0, 0.29, 0.525,
508  0, 0.175, 0.54,
509  0, 0.09, 0.5,
510  0, 0.04, 0.42,
511  0, 0.025, 0.33,
512  0, 0.015, 0.27,
513  0, 0.01, 0.19,
514  0, 0.01, 0.14,
515  0, 0.01, 0.08,
516  0, 0, 0.025,
517  0, 0, 0,
518  0, 0, 0,
519  0, 0, 0,
520  0, 0, 0
521  };
522 
523  const float COLOUR_JET[100][3] =
524  {
525  0, 0, 0.5200,
526  0, 0, 0.5600,
527  0, 0, 0.6000,
528  0, 0, 0.6400,
529  0, 0, 0.6800,
530  0, 0, 0.7200,
531  0, 0, 0.7600,
532  0, 0, 0.8000,
533  0, 0, 0.8400,
534  0, 0, 0.8800,
535  0, 0, 0.9200,
536  0, 0, 0.9600,
537  0, 0, 1.0000,
538  0, 0.0400, 1.0000,
539  0, 0.0800, 1.0000,
540  0, 0.1200, 1.0000,
541  0, 0.1600, 1.0000,
542  0, 0.2000, 1.0000,
543  0, 0.2400, 1.0000,
544  0, 0.2800, 1.0000,
545  0, 0.3200, 1.0000,
546  0, 0.3600, 1.0000,
547  0, 0.4000, 1.0000,
548  0, 0.4400, 1.0000,
549  0, 0.4800, 1.0000,
550  0, 0.5200, 1.0000,
551  0, 0.5600, 1.0000,
552  0, 0.6000, 1.0000,
553  0, 0.6400, 1.0000,
554  0, 0.6800, 1.0000,
555  0, 0.7200, 1.0000,
556  0, 0.7600, 1.0000,
557  0, 0.8000, 1.0000,
558  0, 0.8400, 1.0000,
559  0, 0.8800, 1.0000,
560  0, 0.9200, 1.0000,
561  0, 0.9600, 1.0000,
562  0, 1.0000, 1.0000,
563  0.0400, 1.0000, 0.9600,
564  0.0800, 1.0000, 0.9200,
565  0.1200, 1.0000, 0.8800,
566  0.1600, 1.0000, 0.8400,
567  0.2000, 1.0000, 0.8000,
568  0.2400, 1.0000, 0.7600,
569  0.2800, 1.0000, 0.7200,
570  0.3200, 1.0000, 0.6800,
571  0.3600, 1.0000, 0.6400,
572  0.4000, 1.0000, 0.6000,
573  0.4400, 1.0000, 0.5600,
574  0.4800, 1.0000, 0.5200,
575  0.5200, 1.0000, 0.4800,
576  0.5600, 1.0000, 0.4400,
577  0.6000, 1.0000, 0.4000,
578  0.6400, 1.0000, 0.3600,
579  0.6800, 1.0000, 0.3200,
580  0.7200, 1.0000, 0.2800,
581  0.7600, 1.0000, 0.2400,
582  0.8000, 1.0000, 0.2000,
583  0.8400, 1.0000, 0.1600,
584  0.8800, 1.0000, 0.1200,
585  0.9200, 1.0000, 0.0800,
586  0.9600, 1.0000, 0.0400,
587  1.0000, 1.0000, 0,
588  1.0000, 0.9600, 0,
589  1.0000, 0.9200, 0,
590  1.0000, 0.8800, 0,
591  1.0000, 0.8400, 0,
592  1.0000, 0.8000, 0,
593  1.0000, 0.7600, 0,
594  1.0000, 0.7200, 0,
595  1.0000, 0.6800, 0,
596  1.0000, 0.6400, 0,
597  1.0000, 0.6000, 0,
598  1.0000, 0.5600, 0,
599  1.0000, 0.5200, 0,
600  1.0000, 0.4800, 0,
601  1.0000, 0.4400, 0,
602  1.0000, 0.4000, 0,
603  1.0000, 0.3600, 0,
604  1.0000, 0.3200, 0,
605  1.0000, 0.2800, 0,
606  1.0000, 0.2400, 0,
607  1.0000, 0.2000, 0,
608  1.0000, 0.1600, 0,
609  1.0000, 0.1200, 0,
610  1.0000, 0.0800, 0,
611  1.0000, 0.0400, 0,
612  1.0000, 0, 0,
613  0.9600, 0, 0,
614  0.9200, 0, 0,
615  0.8800, 0, 0,
616  0.8400, 0, 0,
617  0.8000, 0, 0,
618  0.7600, 0, 0,
619  0.7200, 0, 0,
620  0.6800, 0, 0,
621  0.6400, 0, 0,
622  0.6000, 0, 0,
623  0.5600, 0, 0,
624  0.5200, 0, 0
625  };
626 
627 }
628 
629 
630 
631 #endif
const int PHOTOPIC_LENGTH
Starting wavelength of PHOTOPIC_VALUES.
Definition: image_utilities_data.h:21
const int PHOTOPIC_END
Length of PHOTOPIC_VALUES.
Definition: image_utilities_data.h:22
const int CAMERA_SENSITIVITY_LENGTH
Definition: image_utilities_data.h:472
const float CAMERA_SENSITIVITY[35][3]
Definition: image_utilities_data.h:484
const float COLOUR_JET[100][3]
Definition: image_utilities_data.h:523
const float CAMERA_SENSITIVITY_WAVELENGTHS[35]
Definition: image_utilities_data.h:474
const float PHOTOPIC_VALUES[441]
Ending wavelength of PHOTOPIC_VALUES.
Definition: image_utilities_data.h:25
const int PHOTOPIC_START
Definition: image_utilities_data.h:20