21 #ifndef otbSatelliteRSR_h
22 #define otbSatelliteRSR_h
47 template <
class TPrecision =
double,
class TValuePrecision =
double>
66 itkGetConstMacro(NbBands,
unsigned int);
68 itkSetMacro(NbBands,
unsigned int);
72 itkSetMacro(SortBands,
bool);
88 virtual int Size()
const;
105 typename VectorPairType::const_iterator it = a->GetResponse().begin();
107 while ((*it).second == 0)
111 aFirstNotNull = (*it).first;
113 typename VectorPairType::const_iterator it2 = b->GetResponse().begin();
115 while ((*it2).second == 0)
119 bFirstNotNull = (*it2).first;
121 return aFirstNotNull < bFirstNotNull;
133 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
176 #ifndef OTB_MANUAL_INSTANTIATION
This class represents a hierarchy of vector data.
itk::SmartPointer< const Self > ConstPointer
SpectralResponse< TPrecision, TValuePrecision > SpectralResponseType
void Load(const std::string &filename, ValuePrecisionType coefNormalization=1.0)
ValuePrecisionType operator()(const PrecisionType &lambda, const unsigned int numBand)
itk::SmartPointer< Self > Pointer
void operator=(const Self &)=delete
void PrintSelf(std::ostream &os, itk::Indent indent) const override
SpectralResponseType::Pointer SpectralResponsePointerType
std::vector< SpectralResponsePointerType > RSRVectorType
SpectralResponseType * GetSolarIrradiance()
SatelliteRSR(const Self &)=delete
itk::DataObject Superclass
SpectralResponsePointerType m_SolarIrradiance
TValuePrecision ValuePrecisionType
SpectralResponseType::VectorPairType VectorPairType
This class represents the spectral response of an object (or a satellite band).
itk::SmartPointer< Self > Pointer
std::vector< PairType > VectorPairType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
bool operator()(SpectralResponsePointerType a, SpectralResponsePointerType b)