Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
op_node.h
Go to the documentation of this file.
1 /****************************************************************************************
2  * SCYLLARUS : C++ HYPERSPECTRAL PROCESSING LIBRARY
3  * op_node.h - Operation node for arithmetic tree
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 OP_NODE_H_
13 #define OP_NODE_H_
14 
15 #include <armadillo>
16 
17 namespace scyl
18 {
19 
23 class op_node
24 {
25 
26 public:
27 
28  enum op_type
29  {
30  MUL,
31  DIV,
32  ADD,
33  SUB,
34  LES,
35  GRE,
37  };
38 
39 
40  op_node();
41  op_node(float in);
42  op_node(arma::fmat in);
44  virtual ~op_node();
45 
48 
49  arma::fmat result();
50 
51 
52 private:
53 
55  arma::fmat m_result;
57 };
58 
59 }
60 
61 #endif /* OP_NODE_H_ */
virtual ~op_node()
Definition: op_node.cpp:47
op_node is used by band_maths() to perform mathematical operations.
Definition: op_node.h:23
op_node()
Definition: op_node.cpp:15
arma::fmat result()
Definition: op_node.cpp:54
Definition: op_node.h:36
Definition: op_node.h:30
arma::fmat m_result
Definition: op_node.h:55
scyl::op_node::op_type m_op
Definition: op_node.h:56
Definition: op_node.h:33
Definition: op_node.h:32
scyl::op_node * right
Definition: op_node.h:47
Definition: op_node.h:35
op_type
Definition: op_node.h:28
Definition: op_node.h:34
Definition: op_node.h:31
scyl::op_node * left
Definition: op_node.h:46
bool m_result_set
Definition: op_node.h:54