![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbSpectralResponse.h>
Inheritance diagram for otb::SpectralResponse< TPrecision, TValuePrecision >:
Collaboration diagram for otb::SpectralResponse< TPrecision, TValuePrecision >:Classes | |
| struct | sort_pair |
Public Types | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef itk::SmartPointer< FilterFunctionValuesType > | FilterFunctionValuesPointerType |
| typedef otb::FilterFunctionValues | FilterFunctionValuesType |
| typedef ImageType::Pointer | ImagePointerType |
| typedef otb::VectorImage< TValuePrecision, 2 > | ImageType |
| typedef std::pair< TPrecision, TPrecision > | IntervalType |
| typedef itk::ImageRegionIterator< ImageType > | IteratorType |
| typedef std::pair< TPrecision, TValuePrecision > | PairType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef TPrecision | PrecisionType |
| typedef SpectralResponse | Self |
| typedef itk::DataObject | Superclass |
| typedef TValuePrecision | ValuePrecisionType |
| typedef std::vector< PairType > | VectorPairType |
| VectorPairType | m_Response |
| TPrecision | m_SensitivityThreshold |
| IntervalType | m_Interval |
| unsigned long | m_PosGuess |
| bool | m_IntervalComputed |
| bool | m_UsePosGuess |
| static Pointer | New () |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| virtual const char * | GetNameOfClass () const |
| virtual void | SetSensitivityThreshold (TPrecision _arg) |
| virtual TPrecision | GetSensitivityThreshold () const |
| virtual void | SetUsePosGuess (bool _arg) |
| virtual bool | GetUsePosGuess () const |
| virtual bool | Clear () |
| virtual unsigned int | Size () const |
| void | Load (const std::string &filename, ValuePrecisionType coefNormalization=1.0) |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| VectorPairType & | GetResponse () |
| void | SetResponse (const VectorPairType &resp) |
| ValuePrecisionType | operator() (const PrecisionType &lambda) |
| ImagePointerType | GetImage (ImagePointerType image) const |
| void | SetFromImage (ImagePointerType image) |
| FilterFunctionValuesPointerType | GetFilterFunctionValues (double step=0.0025) |
| IntervalType | GetInterval () |
| void | SetPosGuessMin (const PrecisionType &lambda) |
| SpectralResponse () | |
| ~SpectralResponse () override | |
| void | ComputeInterval () |
| SpectralResponse (const Self &)=delete | |
| void | operator= (const Self &)=delete |
This class represents the spectral response of an object (or a satellite band).
This class contains a SORTED std::vector of std::pair values. The first argument of the pair is a wavelength lambda (in micro meters). The second argument of the pair is the reflectance response associated to lambda.
The two templates indicate:
This Spectral response can be loaded from ASCII file (JPL spectral library Version 1.2) http://speclib.jpl.nasa.gov.
Definition at line 55 of file otbSpectralResponse.h.
| typedef itk::SmartPointer<const Self> otb::SpectralResponse< TPrecision, TValuePrecision >::ConstPointer |
Definition at line 62 of file otbSpectralResponse.h.
| typedef itk::SmartPointer<FilterFunctionValuesType> otb::SpectralResponse< TPrecision, TValuePrecision >::FilterFunctionValuesPointerType |
Definition at line 79 of file otbSpectralResponse.h.
| typedef otb::FilterFunctionValues otb::SpectralResponse< TPrecision, TValuePrecision >::FilterFunctionValuesType |
Standard filter functions values typedef
Definition at line 78 of file otbSpectralResponse.h.
| typedef ImageType::Pointer otb::SpectralResponse< TPrecision, TValuePrecision >::ImagePointerType |
Definition at line 74 of file otbSpectralResponse.h.
| typedef otb::VectorImage<TValuePrecision, 2> otb::SpectralResponse< TPrecision, TValuePrecision >::ImageType |
Standard image typedef
Definition at line 73 of file otbSpectralResponse.h.
| typedef std::pair<TPrecision, TPrecision> otb::SpectralResponse< TPrecision, TValuePrecision >::IntervalType |
Definition at line 81 of file otbSpectralResponse.h.
| typedef itk::ImageRegionIterator<ImageType> otb::SpectralResponse< TPrecision, TValuePrecision >::IteratorType |
Definition at line 75 of file otbSpectralResponse.h.
| typedef std::pair<TPrecision, TValuePrecision> otb::SpectralResponse< TPrecision, TValuePrecision >::PairType |
Definition at line 68 of file otbSpectralResponse.h.
| typedef itk::SmartPointer<Self> otb::SpectralResponse< TPrecision, TValuePrecision >::Pointer |
Definition at line 61 of file otbSpectralResponse.h.
| typedef TPrecision otb::SpectralResponse< TPrecision, TValuePrecision >::PrecisionType |
Template parameters typedef
Definition at line 65 of file otbSpectralResponse.h.
| typedef SpectralResponse otb::SpectralResponse< TPrecision, TValuePrecision >::Self |
Standard class typedefs
Definition at line 59 of file otbSpectralResponse.h.
| typedef itk::DataObject otb::SpectralResponse< TPrecision, TValuePrecision >::Superclass |
Definition at line 60 of file otbSpectralResponse.h.
| typedef TValuePrecision otb::SpectralResponse< TPrecision, TValuePrecision >::ValuePrecisionType |
Definition at line 66 of file otbSpectralResponse.h.
| typedef std::vector<PairType> otb::SpectralResponse< TPrecision, TValuePrecision >::VectorPairType |
Definition at line 70 of file otbSpectralResponse.h.
|
protected |
Constructor
Definition at line 35 of file otbSpectralResponse.hxx.
|
inlineoverrideprotected |
Constructor from a ASCII file Destructor
Definition at line 169 of file otbSpectralResponse.h.
|
privatedelete |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
virtual |
Clear the vector of data pairs
Definition at line 79 of file otbSpectralResponse.hxx.
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 264 of file otbSpectralResponse.hxx.
Referenced by otb::SpectralResponse< TPrecision, TValuePrecision >::GetInterval().
| virtual::itk::LightObject::Pointer otb::SpectralResponse< TPrecision, TValuePrecision >::CreateAnother | ( | void | ) | const |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
| SpectralResponse< TPrecision, TValuePrecision >::FilterFunctionValuesPointerType otb::SpectralResponse< TPrecision, TValuePrecision >::GetFilterFunctionValues | ( | double | step = 0.0025 | ) |
Transform the SR in a Filter Function (6S parameters)
Definition at line 243 of file otbSpectralResponse.hxx.
| SpectralResponse< TPrecision, TValuePrecision >::ImagePointerType otb::SpectralResponse< TPrecision, TValuePrecision >::GetImage | ( | ImagePointerType | image | ) | const |
Drop null value of reflectance in the Vector Transform the SR in a image to compute the TOA reflectance
Definition at line 186 of file otbSpectralResponse.hxx.
|
inline |
Get the wavelength of the first and last not null reflectance
Definition at line 149 of file otbSpectralResponse.h.
References otb::SpectralResponse< TPrecision, TValuePrecision >::ComputeInterval(), otb::SpectralResponse< TPrecision, TValuePrecision >::m_Interval, and otb::SpectralResponse< TPrecision, TValuePrecision >::m_IntervalComputed.
|
virtual |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
inline |
get vector of spectral responses
Definition at line 108 of file otbSpectralResponse.h.
References otb::SpectralResponse< TPrecision, TValuePrecision >::m_Response.
|
virtual |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
virtual |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
| void otb::SpectralResponse< TPrecision, TValuePrecision >::Load | ( | const std::string & | filename, |
| ValuePrecisionType | coefNormalization = 1.0 |
||
| ) |
Fill from a ASCII file (CD-ROM ASTER Spectral library Version 1.2)
Definition at line 44 of file otbSpectralResponse.hxx.
|
static |
Standard macros
|
inline |
| PrecisionType |
Definition at line 123 of file otbSpectralResponse.hxx.
|
privatedelete |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
override |
PrintSelf method
Definition at line 297 of file otbSpectralResponse.hxx.
| void otb::SpectralResponse< TPrecision, TValuePrecision >::SetFromImage | ( | ImagePointerType | image | ) |
Transform the image to an SR structure
Definition at line 227 of file otbSpectralResponse.hxx.
| void otb::SpectralResponse< TPrecision, TValuePrecision >::SetPosGuessMin | ( | const PrecisionType & | lambda | ) |
set index in m_Response vector to accelerate () operator
Definition at line 94 of file otbSpectralResponse.hxx.
|
inline |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 113 of file otbSpectralResponse.h.
References otb::SpectralResponse< TPrecision, TValuePrecision >::m_Response.
|
virtual |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
virtual |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
|
virtual |
Return the number of element in the vector (number of pairs)
Definition at line 87 of file otbSpectralResponse.hxx.
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 179 of file otbSpectralResponse.h.
Referenced by otb::SpectralResponse< TPrecision, TValuePrecision >::GetInterval().
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 181 of file otbSpectralResponse.h.
Referenced by otb::SpectralResponse< TPrecision, TValuePrecision >::GetInterval().
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 180 of file otbSpectralResponse.h.
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 169 of file otbSpectralResponse.h.
Referenced by otb::SpectralResponse< TPrecision, TValuePrecision >::GetResponse(), and otb::SpectralResponse< TPrecision, TValuePrecision >::SetResponse().
|
protected |
Minimum value to consider that the spectral response is not null
Definition at line 178 of file otbSpectralResponse.h.
|
protected |
PrintSelf method Spectral response vector of pairs (first=lambda; second=response)
Definition at line 182 of file otbSpectralResponse.h.
1.8.17