Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
dichromatic.h
Go to the documentation of this file.
1 /****************************************************************************************
2  * SCYLLARUS : C++ HYPERSPECTRAL PROCESSING LIBRARY
3  * dichromatic.h - Hyperspectral Image parameter recovery.
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 DICHROMATIC_H_
13 #define DICHROMATIC_H_
14 
15 #include <armadillo>
16 
17 #include "logger.h"
18 #include "utility.h"
19 #include "processing.h"
20 #include "scyllarus_types.h"
21 
22 namespace scyl
23 {
24 
25 
26  void recover_dichromatic_parameters(const arma::fcube & I,
27  const arma::fvec & illuminant,
28  arma::fmat & k,
29  arma::fmat & g,
30  float & k_factor,
31  arma::fcube & s,
33  int size=-1,
34  int gray_threshold=2,
35  int debug=0);
36 
37  void recover_dichromatic_parameters_LS(const arma::fcube & I,
38  const arma::fcube & illuminant,
39  arma::fmat & k,
40  arma::fmat & g,
41  arma::fcube & st,
42  int size=5,
43  int gray_threshold=2,
44  int debug=0);
45 
46 }
47 
48 
49 #endif /* DICHROMATIC_H_ */
I.
Definition: scyllarus_types.h:114
DICHROMATIC_METHOD
Definition: scyllarus_types.h:74
void recover_dichromatic_parameters(const arma::fcube &I, const arma::fvec &illuminant, arma::fmat &k, arma::fmat &g, float &k_factor, arma::fcube &s, scyl::DICHROMATIC_METHOD method=scyl::DICHROMATIC_LS, int size=-1, int gray_threshold=2, int debug=0)
recover_dichromatic_parameters() takes an input image I and illuminant and determines the factors g...
Definition: dichromatic.cpp:32
LS - Use least squares method of dichromatic recovery.
Definition: scyllarus_types.h:76
void recover_dichromatic_parameters_LS(const arma::fcube &I, const arma::fcube &illuminant, arma::fmat &k, arma::fmat &g, arma::fcube &st, int size=5, int gray_threshold=2, int debug=0)
recover_dichromatic_parameters_LS() takes an input image I and illuminant and determines the factors ...
Definition: dichromatic.cpp:139