This class contains the parameters needed to apply dynamic contrast over a raster. More...
#include <RasterContrast.h>
Public Member Functions | |
| std::size_t | getNBands () |
| It gets the contrast number of bands. More... | |
| const te::map::RasterTransform::ContrastType | getType () const |
| It gets the contrast type. More... | |
| 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. More... | |
| RasterContrast (const te::map::RasterTransform::ContrastType &type, const std::size_t &nBands) | |
| It constructs a new RasterContrast instance. More... | |
| RasterContrast (const RasterContrast &rhs) | |
| Copy constructor. More... | |
| 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. More... | |
| ~RasterContrast () | |
| Destructor. More... | |
Private Attributes | |
| std::vector< double > | m_gain |
| std::vector< double > | m_max |
| std::vector< double > | m_min |
| std::size_t | m_nBands |
| std::vector< double > | m_offset1 |
| std::vector< double > | m_offset2 |
| te::map::RasterTransform::ContrastType | m_type |
| The contrast type. More... | |
This class contains the parameters needed to apply dynamic contrast over a raster.
Definition at line 52 of file RasterContrast.h.
| te::map::RasterContrast::RasterContrast | ( | const te::map::RasterTransform::ContrastType & | type, |
| const std::size_t & | nBands | ||
| ) |
It constructs a new RasterContrast instance.
| type | The contrast type. |
Definition at line 31 of file RasterContrast.cpp.
References m_gain, m_max, m_min, m_nBands, m_offset1, and m_offset2.
| te::map::RasterContrast::~RasterContrast | ( | ) |
| te::map::RasterContrast::RasterContrast | ( | const RasterContrast & | rhs | ) |
| std::size_t te::map::RasterContrast::getNBands | ( | ) |
It gets the contrast number of bands.
Definition at line 76 of file RasterContrast.cpp.
References m_nBands.
Referenced by te::map::serialize::WriteLayerRasterContrast().
| const te::map::RasterTransform::ContrastType te::map::RasterContrast::getType | ( | ) | const |
It gets the contrast type.
Definition at line 71 of file RasterContrast.cpp.
References m_type.
Referenced by te::map::DrawRaster(), and te::map::serialize::WriteLayerRasterContrast().
| 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 | ||
| ) |
It get the contrast transformation values.
| gain | The vector with gain values of transformation. |
| offset1 | The vector with offset1 values of transformation. |
| offset2 | The vector with offset2 values of transformation. |
| min | The vector with minimun band values for this transformation. |
| max | The vector with maximum band values for this transformation. |
Definition at line 93 of file RasterContrast.cpp.
References m_gain, m_max, m_min, m_offset1, and m_offset2.
Referenced by te::map::DrawRaster(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), and te::map::serialize::WriteLayerRasterContrast().
| void te::map::RasterContrast::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.
| gain | The gain value of transformation. |
| offset1 | The offset1 value of transformation. |
| offset2 | The offset2 value of transformation. |
| min | The minimun band value for this transformation. |
| max | The maximum band value for this transformation. |
| band | The band index. |
Definition at line 81 of file RasterContrast.cpp.
References band, m_gain, m_max, m_min, m_nBands, m_offset1, and m_offset2.
Referenced by te::mnt::ImageGenerationDialog::drawPreview(), te::qt::widgets::MixtureModelWizard::execute(), and te::qt::widgets::RasterSymbolizerWidget::onApplyToolButtonClicked().
|
private |
Definition at line 113 of file RasterContrast.h.
Referenced by getValues(), RasterContrast(), setValues(), and ~RasterContrast().
|
private |
Definition at line 117 of file RasterContrast.h.
Referenced by getValues(), RasterContrast(), setValues(), and ~RasterContrast().
|
private |
Definition at line 116 of file RasterContrast.h.
Referenced by getValues(), RasterContrast(), setValues(), and ~RasterContrast().
|
private |
Definition at line 111 of file RasterContrast.h.
Referenced by getNBands(), RasterContrast(), and setValues().
|
private |
Definition at line 114 of file RasterContrast.h.
Referenced by getValues(), RasterContrast(), setValues(), and ~RasterContrast().
|
private |
Definition at line 115 of file RasterContrast.h.
Referenced by getValues(), RasterContrast(), setValues(), and ~RasterContrast().
|
private |