27 #include "../common/STLUtils.h" 56 std::copy(rhs.
m_min.begin(), rhs.
m_min.end(), std::back_inserter(
m_min));
59 std::copy(rhs.
m_max.begin(), rhs.
m_max.end(), std::back_inserter(
m_max));
93 void te::map::RasterContrast::getValues(std::vector<double>& gain, std::vector<double>& offset1, std::vector<double>& offset2, std::vector<double>& min, std::vector<double>& max)
void setValues(const double &gain, const double &offset1, const double &offset2, const double &min, const double &max, const std::size_t &band)
It set the transformation values for contranst of one band.
~RasterContrast()
Destructor.
const te::map::RasterTransform::ContrastType getType() const
It gets the contrast type.
te::map::RasterTransform::ContrastType m_type
The contrast type.
RasterContrast(const te::map::RasterTransform::ContrastType &type, const std::size_t &nBands)
It constructs a new RasterContrast instance.
This class contains the parameters needed to apply dynamic contrast over a raster.
This class contains the parameters needed to apply dynamic contrast over a raster.
std::size_t getNBands()
It gets the contrast number of bands.
std::vector< double > m_offset2
std::vector< double > m_max
std::vector< double > m_min
void getValues(std::vector< double > &gain, std::vector< double > &offset1, std::vector< double > &offset2, std::vector< double > &min, std::vector< double > &max)
It get the contrast transformation values.
std::vector< double > m_gain
std::vector< double > m_offset1