|
Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
|
data_input is an object that allows for manual data input into the pipeline (more 'managed' than using the pipelines 'set_I()' function. More...
#include <data_input.h>
Public Member Functions | |
| data_input () | |
| virtual | ~data_input () |
| arma::fcube | I () const |
| Gets I. More... | |
| const arma::fcube * | I_ptr () const |
| Gets a pointer to I. I may be unsorted unless I() has been called previously. More... | |
| arma::fvec | illuminant () const |
| Gets illuminant. More... | |
| arma::fmat | k () const |
| Gets k. More... | |
| arma::fmat | g () const |
| Gets g. More... | |
| arma::fcube | s () const |
| Gets s. More... | |
| const arma::fcube * | s_ptr () const |
| Gets a pointer to s. More... | |
| arma::fmat | elements () const |
| Gets elements. More... | |
| arma::fcube | element_abundances () const |
| Gets element_abundances. More... | |
| arma::ucube | element_abundance_indexes () const |
| Gets element_abundance_indexes. More... | |
| arma::fmat | endmembers () const |
| Gets endmembers. More... | |
| std::vector< std::string > | endmember_labels () const |
| Gets endmember_labels. More... | |
| arma::fmat | endmember_abundances () const |
| Gets endmember_element_abundances. More... | |
| arma::umat | endmember_abundance_indexes () const |
| Gets endmember_element_abundance_indexes. More... | |
| arma::fvec | wavelengths () const |
| Gets wavelengths. More... | |
| void | set_I (const arma::fcube &in) |
| Sets I for the input object. More... | |
| void | set_illuminant (const arma::fvec &in) |
| Sets illuminant for the input object. More... | |
| void | set_k (const arma::fmat &in) |
| Sets k for the input object. More... | |
| void | set_g (const arma::fmat &in) |
| Sets g for the input object. More... | |
| void | set_s (const arma::fcube &in) |
| Sets s for the input object. More... | |
| void | set_elements (const arma::fmat &in) |
| Sets elements for the input object. More... | |
| void | set_element_abundances (const arma::fcube &in) |
| Sets element_abundances for the input object. More... | |
| void | set_element_abundance_indexes (const arma::ucube &in) |
| Sets element_abundance_indexes for the input object. More... | |
| void | set_endmembers (const arma::fmat &in) |
| Sets endmembers for the input object. More... | |
| void | set_endmember_abundances (const arma::fmat &in) |
| Sets endmember_abundances for the input object. More... | |
| void | set_endmember_abundance_indexes (const arma::umat &in) |
| Sets endmember_abundance_indexes for the input object. More... | |
| void | set_endmember_labels (const std::vector< std::string > &in) |
| Sets endmember_labels for the input object. More... | |
| void | set_wavelengths (const arma::fvec &in) |
| Sets the wavelength vector for the input object. (Set I first) More... | |
| scyl::INPUT_TYPE | type () |
| Tells you what an object is. More... | |
Public Member Functions inherited from scyl::input | |
| input () | |
| virtual | ~input () |
| virtual arma::fcube | I (const arma::uvec bands) const |
| Gets I (subset of bands) More... | |
| virtual arma::fcube | I (int r0, int c0, int r1, int c1) const |
| Gets I (cropped) More... | |
| virtual arma::fcube | I (const arma::uvec bands, int r0, int c0, int r1, int c1) const |
| Gets I (subset of bands) More... | |
| virtual GDALDataset * | gdal_dataset_ptr () const |
| Gets gdal_dataset_ptr. More... | |
| int | height () const |
| Get height. More... | |
| int | width () const |
| Get width. More... | |
| int | bands () const |
| Get bands. More... | |
Private Attributes | |
| arma::fcube | m_I |
| arma::fvec | m_illuminant |
| arma::fmat | m_k |
| arma::fmat | m_g |
| arma::fcube | m_s |
| arma::fmat | m_elements |
| arma::fcube | m_element_abundances |
| arma::ucube | m_element_abundance_indexes |
| arma::fmat | m_endmembers |
| arma::fmat | m_endmember_abundances |
| arma::umat | m_endmember_abundance_indexes |
| std::vector< std::string > | m_endmember_labels |
| arma::fvec | m_wavelengths |
Additional Inherited Members | |
Protected Attributes inherited from scyl::input | |
| unsigned int | m_height |
| unsigned int | m_width |
| unsigned int | m_bands |
data_input is an object that allows for manual data input into the pipeline (more 'managed' than using the pipelines 'set_I()' function.
scyl::input d_input = scyl::data_input(); d_input.set_I(image_cube); d_input.set_wavelengths(waves);
Armadillo has load/save functions that may be useful in conjunction with this class.
Only items set will return non zero values.
| scyl::data_input::data_input | ( | ) |
data_input Constructor Creates a data_input object.
|
virtual |
data_input Destructor.
|
virtual |
Gets element_abundance_indexes.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets element_abundances.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets elements.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets endmember_element_abundance_indexes.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets endmember_element_abundances.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets endmember_labels.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
Gets endmembers.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
|
virtual |
|
virtual |
Gets a pointer to I. I may be unsorted unless I() has been called previously.
Reimplemented from scyl::input.
|
virtual |
Gets illuminant.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
virtual |
|
virtual |
|
virtual |
Gets a pointer to s.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
| void scyl::data_input::set_element_abundance_indexes | ( | const arma::ucube & | in | ) |
Sets element_abundance_indexes for the input object.
| in | element_abundance_indexes. |
| Exception | data size mismatch |
| void scyl::data_input::set_element_abundances | ( | const arma::fcube & | in | ) |
Sets element_abundances for the input object.
| in | element_abundances. |
| Exception | data size mismatch |
| void scyl::data_input::set_elements | ( | const arma::fmat & | in | ) |
Sets elements for the input object.
| in | elements. |
| Exception | data size mismatch |
| void scyl::data_input::set_endmember_abundance_indexes | ( | const arma::umat & | in | ) |
Sets endmember_abundance_indexes for the input object.
| in | endmember_abundance_indexes. |
| Exception | data size mismatch |
| void scyl::data_input::set_endmember_abundances | ( | const arma::fmat & | in | ) |
Sets endmember_abundances for the input object.
| in | endmember_abundances. |
| Exception | data size mismatch |
| void scyl::data_input::set_endmember_labels | ( | const std::vector< std::string > & | in | ) |
Sets endmember_labels for the input object.
| in | endmember_labels. |
| Exception | data size mismatch |
| void scyl::data_input::set_endmembers | ( | const arma::fmat & | in | ) |
Sets endmembers for the input object.
| in | endmembers. |
| Exception | data size mismatch |
| void scyl::data_input::set_g | ( | const arma::fmat & | in | ) |
Sets g for the input object.
| in | g. |
| Exception | data size mismatch |
| void scyl::data_input::set_I | ( | const arma::fcube & | in | ) |
Sets I for the input object.
| in | the input image cube. |
| Exception | data size mismatch |
| void scyl::data_input::set_illuminant | ( | const arma::fvec & | in | ) |
Sets illuminant for the input object.
| in | the illuminant. |
| Exception | data size mismatch |
| void scyl::data_input::set_k | ( | const arma::fmat & | in | ) |
Sets k for the input object.
| in | k. |
| Exception | data size mismatch |
| void scyl::data_input::set_s | ( | const arma::fcube & | in | ) |
Sets s for the input object.
| in | the input reflectance cube. |
| Exception | data size mismatch |
| void scyl::data_input::set_wavelengths | ( | const arma::fvec & | in | ) |
Sets the wavelength vector for the input object. (Set I first)
Bands in I will be sorted when this function is called, according to the wavelength vector (If not already sorted).
| in | the input wavelength vector. |
| Exception | data size mismatch |
|
virtual |
|
virtual |
Gets wavelengths.
| Exception | Data does not exist. |
Reimplemented from scyl::input.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6