21 #ifndef otbSpectralResponse_h
22 #define otbSpectralResponse_h
24 #include "itkDataObject.h"
25 #include <itkObjectFactory.h>
31 #include "itkImageRegionIterator.h"
54 template <
class TPrecision =
double,
class TValuePrecision =
double>
68 typedef std::pair<TPrecision, TValuePrecision>
PairType;
88 itkSetMacro(SensitivityThreshold, TPrecision);
89 itkGetConstMacro(SensitivityThreshold, TPrecision);
91 itkSetMacro(UsePosGuess,
bool);
92 itkGetConstMacro(UsePosGuess,
bool);
99 virtual unsigned int Size()
const;
105 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
132 return a.first < b.first;
193 #ifndef OTB_MANUAL_INSTANTIATION
This class contains the values of the filter function for the processed spectral band.
This class represents the spectral response of an object (or a satellite band).
itk::ImageRegionIterator< ImageType > IteratorType
VectorPairType & GetResponse()
otb::VectorImage< TValuePrecision, 2 > ImageType
itk::SmartPointer< Self > Pointer
TValuePrecision ValuePrecisionType
itk::SmartPointer< FilterFunctionValuesType > FilterFunctionValuesPointerType
virtual unsigned int Size() const
std::pair< TPrecision, TPrecision > IntervalType
FilterFunctionValuesPointerType GetFilterFunctionValues(double step=0.0025)
IntervalType GetInterval()
void Load(const std::string &filename, ValuePrecisionType coefNormalization=1.0)
ImageType::Pointer ImagePointerType
std::vector< PairType > VectorPairType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void SetFromImage(ImagePointerType image)
void operator=(const Self &)=delete
ValuePrecisionType operator()(const PrecisionType &lambda)
itk::DataObject Superclass
~SpectralResponse() override
TPrecision m_SensitivityThreshold
itk::SmartPointer< const Self > ConstPointer
ImagePointerType GetImage(ImagePointerType image) const
void SetResponse(const VectorPairType &resp)
void SetPosGuessMin(const PrecisionType &lambda)
SpectralResponse(const Self &)=delete
std::pair< TPrecision, TValuePrecision > PairType
otb::FilterFunctionValues FilterFunctionValuesType
VectorPairType m_Response
Creation of an "otb" vector image which contains metadata.
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
bool operator()(PairType a, PairType b)