Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
hdr_output.h
Go to the documentation of this file.
1 /****************************************************************************************
2  * SCYLLARUS : C++ HYPERSPECTRAL PROCESSING LIBRARY
3  * hdr_output.h - Hyperspectral Image HDR Output Object.
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 #ifndef HDR_OUTPUT_H_
12 #define HDR_OUTPUT_H_
13 
14 #include "output.h"
15 
16 #include <boost/filesystem.hpp>
17 #include <iomanip>
18 
19 namespace scyl
20 {
21 
34 class hdr_output: public scyl::output
35 {
36 
37 public:
38 
39  hdr_output();
40  hdr_output(bool save_reflectance);
41  hdr_output(int data_type);
42  hdr_output(bool save_reflectance, int data_type);
43 
44  virtual ~hdr_output();
45 
46  void save(scyl::pipeline * in,
47  std::string filename);
48 
49  void set_data_type(int in);
50  int data_type();
51 
52  static void write_hdr(std::string file_path,
53  std::string file_basename,
54  std::string data_extension,
55  const arma::fcube & I,
56  const arma::fvec & wavelengths,
57  int data_type=4,
58  std::string description="");
59 
60 
61 private:
62 
65 
66 };
67 
68 }
69 #endif /* HDR_OUTPUT_H_ */
static void write_hdr(std::string file_path, std::string file_basename, std::string data_extension, const arma::fcube &I, const arma::fvec &wavelengths, int data_type=4, std::string description="")
write out a hdr / data file pair to disk. File wil use BSQ encoding with float data type (currently f...
Definition: hdr_output.cpp:180
void save(scyl::pipeline *in, std::string filename)
save() takes a pipeline object and file name and writes out a HDR file and associated data file (defa...
Definition: hdr_output.cpp:104
Output is a pure virtual base class from which output classes for the pipeline are derived...
Definition: output.h:32
bool m_save_reflectance
Definition: hdr_output.h:63
void set_data_type(int in)
Definition: hdr_output.cpp:70
I.
Definition: scyllarus_types.h:114
hdr_output()
Definition: hdr_output.cpp:18
Pipeline is an object that holds configuration properties and data items, and facilitates the process...
Definition: pipeline.h:57
int m_data_type
Definition: hdr_output.h:64
HDR Output is a class that is used to output HDR (and associated .fla, .raw) files.
Definition: hdr_output.h:34
int data_type()
Definition: hdr_output.cpp:84
virtual ~hdr_output()
Definition: hdr_output.cpp:61