OTB
9.0.0
Orfeo Toolbox
|
#include <otbReduceSpectralResponse.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef InputRSRType::Pointer | InputRSRPointerType |
typedef TRSR | InputRSRType |
typedef InputSpectralResponseType::Pointer | InputSpectralResponsePointerType |
typedef TSpectralResponse | InputSpectralResponseType |
typedef InputSpectralResponseType::PairType | PairType |
typedef itk::SmartPointer< Self > | Pointer |
typedef InputRSRType::PrecisionType | PrecisionType |
typedef std::vector< ValuePrecisionType > | ReduceSpectralResponseVectorType |
typedef InputRSRType::RSRVectorType | RSRVectorType |
typedef ReduceSpectralResponse | Self |
typedef itk::DataObject | Superclass |
typedef InputRSRType::ValuePrecisionType | ValuePrecisionType |
typedef InputSpectralResponseType::VectorPairType | VectorPairType |
InputRSRPointerType | m_InputSatRSR |
InputSpectralResponsePointerType | m_InputSpectralResponse |
InputSpectralResponsePointerType | m_ReduceResponse |
bool | m_ReflectanceMode |
static Pointer | New () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
virtual const InputRSRType * | GetInputSatRSR () const |
virtual void | SetInputSatRSR (InputRSRType *_arg) |
virtual const InputSpectralResponseType * | GetInputSpectralResponse () const |
virtual void | SetInputSpectralResponse (InputSpectralResponseType *_arg) |
itkGetObjectMacro (ReduceResponse, InputSpectralResponseType) | |
virtual void | SetReflectanceMode (bool _arg) |
virtual bool | GetReflectanceMode () const |
virtual bool | Clear () |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
ValuePrecisionType | operator() (const unsigned int numBand) |
void | CalculateResponse () |
void | LoadInputsFromFiles (const std::string &spectralResponseFile, const std::string &RSRFile, const unsigned int nbRSRBands, ValuePrecisionType coefNormSpectre=1.0, ValuePrecisionType coefNormRSR=1.0) |
ReduceSpectralResponse () | |
~ReduceSpectralResponse () override | |
ReduceSpectralResponse (const Self &)=delete | |
void | operator= (const Self &)=delete |
This class computes the reduced spectral response of each band of a sensor.
It takes the spectral response of an object and the relative spectral response of a satellite (one response per band) to compute the satellite spectral bands.
There are 2 operating modes:
The two templates indicate:
The computation assumes that the RSR of the sensor has a wavelength resolution similar or better than the spectral response to be reduced. If this is not the case, it is wise to oversample it (by linear interpolation, for instance).
The method CalculateResponse must be called.
Definition at line 64 of file otbReduceSpectralResponse.h.
typedef itk::SmartPointer<const Self> otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::ConstPointer |
Definition at line 72 of file otbReduceSpectralResponse.h.
typedef InputRSRType::Pointer otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::InputRSRPointerType |
Definition at line 79 of file otbReduceSpectralResponse.h.
typedef TRSR otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::InputRSRType |
Definition at line 76 of file otbReduceSpectralResponse.h.
typedef InputSpectralResponseType::Pointer otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::InputSpectralResponsePointerType |
Definition at line 80 of file otbReduceSpectralResponse.h.
typedef TSpectralResponse otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::InputSpectralResponseType |
Template parameters typedef
Definition at line 75 of file otbReduceSpectralResponse.h.
typedef InputSpectralResponseType::PairType otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::PairType |
Definition at line 78 of file otbReduceSpectralResponse.h.
typedef itk::SmartPointer<Self> otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::Pointer |
Definition at line 71 of file otbReduceSpectralResponse.h.
typedef InputRSRType::PrecisionType otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::PrecisionType |
Definition at line 82 of file otbReduceSpectralResponse.h.
typedef std::vector<ValuePrecisionType> otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::ReduceSpectralResponseVectorType |
Definition at line 89 of file otbReduceSpectralResponse.h.
typedef InputRSRType::RSRVectorType otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::RSRVectorType |
Definition at line 88 of file otbReduceSpectralResponse.h.
typedef ReduceSpectralResponse otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::Self |
Standard class typedefs
Definition at line 69 of file otbReduceSpectralResponse.h.
typedef itk::DataObject otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::Superclass |
Definition at line 70 of file otbReduceSpectralResponse.h.
typedef InputRSRType::ValuePrecisionType otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::ValuePrecisionType |
Definition at line 83 of file otbReduceSpectralResponse.h.
typedef InputSpectralResponseType::VectorPairType otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::VectorPairType |
Definition at line 85 of file otbReduceSpectralResponse.h.
|
protected |
Constructor
Definition at line 32 of file otbReduceSpectralResponse.hxx.
References otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::m_ReduceResponse.
|
inlineoverrideprotected |
Constructor from a ASCII file Destructor
Definition at line 142 of file otbReduceSpectralResponse.h.
|
privatedelete |
PrintSelf method Input relative spectral sensor model of response
void otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::CalculateResponse |
Calculate the vector response for each band of the sensor
Definition at line 129 of file otbReduceSpectralResponse.hxx.
|
virtual |
Clear the vector data
Definition at line 38 of file otbReduceSpectralResponse.hxx.
virtual::itk::LightObject::Pointer otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::CreateAnother | ( | void | ) | const |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::itkGetObjectMacro | ( | ReduceResponse | , |
InputSpectralResponseType | |||
) |
The GetReduceResponse method gives the output. The first value in the pair is the central wavelength of the band (see SpectralResponse).
void otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::LoadInputsFromFiles | ( | const std::string & | spectralResponseFile, |
const std::string & | RSRFile, | ||
const unsigned int | nbRSRBands, | ||
ValuePrecisionType | coefNormSpectre = 1.0 , |
||
ValuePrecisionType | coefNormRSR = 1.0 |
||
) |
Create and load Spectral response and satellite RSR from files
Load the spectral response file
Set the satellite number of bands
Load the satellite response file
Definition at line 149 of file otbReduceSpectralResponse.hxx.
|
static |
Standard macros
|
inline |
PrecisionType |
Definition at line 67 of file otbReduceSpectralResponse.hxx.
References otb::trapezoid_area().
|
privatedelete |
PrintSelf method Input relative spectral sensor model of response
|
override |
PrintSelf method
Definition at line 168 of file otbReduceSpectralResponse.hxx.
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
virtual |
PrintSelf method Input relative spectral sensor model of response
|
protected |
PrintSelf method Input relative spectral sensor model of response
Definition at line 142 of file otbReduceSpectralResponse.h.
|
protected |
Input spectral response (usually from a library)
Definition at line 151 of file otbReduceSpectralResponse.h.
|
private |
the computed response
Definition at line 158 of file otbReduceSpectralResponse.h.
Referenced by otb::ReduceSpectralResponse< TSpectralResponse, TRSR >::ReduceSpectralResponse().
|
private |
Choose between reflectance or radiance mode
Definition at line 161 of file otbReduceSpectralResponse.h.