#include <ComposerRule.h>
|
void | clear () |
|
virtual ComposerRule * | clone () const =0 |
| Create a clone of this instance. More...
|
|
| ComposerRule () |
|
| ComposerRule (const ComposerRule &other) |
|
virtual void | getComposedValues (const double &line, const double &col, double *const composedValuesPtr) const =0 |
| Compose a pixel value using the current parameters. More...
|
|
virtual bool | initialize (const te::rst::Raster &raster1, const std::vector< unsigned int > &raster1Bands, const te::rst::Raster &raster2, const std::vector< unsigned int > &raster2Bands, te::rst::Raster &raster3, const std::vector< unsigned int > &raster3Bands, const te::rst::Interpolator::Method &interpMethod1, const te::rst::Interpolator::Method &interpMethod2, const double &noDataValue, const bool forceRaster1NoDataValue, const bool forceRaster2NoDataValue, const std::vector< double > &pixelOffsets1, const std::vector< double > &pixelScales1, const std::vector< double > &pixelOffsets2, const std::vector< double > &pixelScales2) |
| Inititate the instance. More...
|
|
void | initState () |
|
const ComposerRule & | operator= (const ComposerRule &other) |
|
void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. More...
|
|
Definition at line 43 of file ComposerRule.h.
◆ ~ComposerRule()
virtual te::rp::ComposerRule::~ComposerRule |
( |
| ) |
|
|
virtual |
◆ ComposerRule() [1/2]
te::rp::ComposerRule::ComposerRule |
( |
| ) |
|
|
protected |
◆ ComposerRule() [2/2]
te::rp::ComposerRule::ComposerRule |
( |
const ComposerRule & |
other | ) |
|
|
protected |
◆ clear()
void te::rp::ComposerRule::clear |
( |
| ) |
|
|
protected |
◆ clone()
virtual ComposerRule * te::rp::ComposerRule::clone |
( |
| ) |
const |
|
protectedpure virtual |
◆ getComposedValues()
virtual void te::rp::ComposerRule::getComposedValues |
( |
const double & |
line, |
|
|
const double & |
col, |
|
|
double *const |
composedValuesPtr |
|
) |
| const |
|
protectedpure virtual |
Compose a pixel value using the current parameters.
- Parameters
-
line | Line (raster 3 reference). |
col | Column (raster 3 reference). |
composedValuesPtr | A pointer to a pre-allocated vector where the composed values will be stored. |
- Note
- The caller of this method must be aware that the returned composed value may be outside the original input rasters valid values range.
-
Raster 1 values have precedence over raster 2 values (when applicable).
Implemented in te::rp::ComposerRuleValidNeighborhood, and te::rp::ComposerRuleValidPixel.
◆ getErrorMessage()
const std::string & te::rp::ComposerRule::getErrorMessage |
( |
| ) |
const |
Return the current error message if there is any.
- Returns
- Return the current error message if there is any.
◆ initialize()
virtual bool te::rp::ComposerRule::initialize |
( |
const te::rst::Raster & |
raster1, |
|
|
const std::vector< unsigned int > & |
raster1Bands, |
|
|
const te::rst::Raster & |
raster2, |
|
|
const std::vector< unsigned int > & |
raster2Bands, |
|
|
te::rst::Raster & |
raster3, |
|
|
const std::vector< unsigned int > & |
raster3Bands, |
|
|
const te::rst::Interpolator::Method & |
interpMethod1, |
|
|
const te::rst::Interpolator::Method & |
interpMethod2, |
|
|
const double & |
noDataValue, |
|
|
const bool |
forceRaster1NoDataValue, |
|
|
const bool |
forceRaster2NoDataValue, |
|
|
const std::vector< double > & |
pixelOffsets1, |
|
|
const std::vector< double > & |
pixelScales1, |
|
|
const std::vector< double > & |
pixelOffsets2, |
|
|
const std::vector< double > & |
pixelScales2 |
|
) |
| |
|
protectedvirtual |
Inititate the instance.
- Parameters
-
raster1 | Raster 1. |
raster1Bands | Raster 1 band indexes to use. |
raster2 | Raster 2. |
raster2Bands | Raster 2 band indexes to use (this vector has the same size as raster1Bands). |
raster3 | Raster 3. |
raster3Bands | Raster 3 band indexes to use (this vector has the same size as raster1Bands).
|
interpMethod1 | The interpolation method to use when reading raster 1 data. |
interpMethod2 | The interpolation method to use when reading raster 2 data. |
noDataValue | The value returned where there is no pixel data. |
forceRaster1NoDataValue | Use noDataValue as the input raster 1 no-data value (The original rasters no-data values will be ignored) |
forceRaster2NoDataValue | Use noDataValue as the input raster 1 no-data value (The original rasters no-data values will be ignored)
|
pixelOffsets1 | The values offset to be applied to raster 1 pixel values before the composed value calcule (one element for each used raster channel/band). |
pixelScales1 | The values scale to be applied to raster 1 pixel values before the composed value calcule (one element for each used raster channel/band). |
pixelOffsets2 | The values offset to be applied to raster 2 pixel values before the composed value calcule (one element for each used raster channel/band). |
pixelScales2 | The values scale to be applied to raster 2 pixel values before the composed value calcule (one element for each used raster channel/band). |
- Returns
- true if ok, false on errors
- Note
- Aboute scale and offset parametrs: outValue = ( inputValue * scale ) + offset
Reimplemented in te::rp::ComposerRuleValidNeighborhood, and te::rp::ComposerRuleValidPixel.
◆ initState()
void te::rp::ComposerRule::initState |
( |
| ) |
|
|
protected |
◆ operator=()
◆ setErrorMessage()
void te::rp::ComposerRule::setErrorMessage |
( |
const std::string & |
newErrorMessage | ) |
|
|
protected |
Set the current error message.
- Parameters
-
newErrorMessage | New error message; |
◆ Composer
◆ m_errorMessage
std::string te::rp::ComposerRule::m_errorMessage |
|
protected |
◆ m_forceRaster1NoDataValue
bool te::rp::ComposerRule::m_forceRaster1NoDataValue |
|
protected |
Use noDataValue as the input raster 1 no-data value (The original rasters no-data values will be ignored)
Definition at line 60 of file ComposerRule.h.
◆ m_forceRaster2NoDataValue
bool te::rp::ComposerRule::m_forceRaster2NoDataValue |
|
protected |
Use noDataValue as the input raster 2 no-data value (The original rasters no-data values will be ignored)
Definition at line 61 of file ComposerRule.h.
◆ m_interpMethod1
The interpolation method to use when reading raster 1 data.
Definition at line 65 of file ComposerRule.h.
◆ m_interpMethod2
The interpolation method to use when reading raster 2 data.
Definition at line 66 of file ComposerRule.h.
◆ m_outputNoDataValue
double te::rp::ComposerRule::m_outputNoDataValue |
|
protected |
◆ m_pixelOffsets1
std::vector< double > te::rp::ComposerRule::m_pixelOffsets1 |
|
protected |
The values offset to be applied to raster 1 pixel values before the composed value calcule (one element for each used raster channel/band).
Definition at line 71 of file ComposerRule.h.
◆ m_pixelOffsets2
std::vector< double > te::rp::ComposerRule::m_pixelOffsets2 |
|
protected |
The values offset to be applied to raster 2 pixel values before the composed value calcule (one element for each used raster channel/band).
Definition at line 73 of file ComposerRule.h.
◆ m_pixelScales1
std::vector< double > te::rp::ComposerRule::m_pixelScales1 |
|
protected |
The values scale to be applied to raster 1 pixel values before the composed value calcule (one element for each used raster channel/band).
Definition at line 72 of file ComposerRule.h.
◆ m_pixelScales2
std::vector< double > te::rp::ComposerRule::m_pixelScales2 |
|
protected |
The values scale to be applied to raster 2 pixel values before the composed value calcule (one element for each used raster channel/band).
Definition at line 74 of file ComposerRule.h.
◆ m_raster1Bands
std::vector< unsigned int > te::rp::ComposerRule::m_raster1Bands |
|
protected |
Input raster 1 band indexes to use.
Definition at line 68 of file ComposerRule.h.
◆ m_raster1Ptr
◆ m_raster2Bands
std::vector< unsigned int > te::rp::ComposerRule::m_raster2Bands |
|
protected |
Input raster 2 band indexes to use.
Definition at line 69 of file ComposerRule.h.
◆ m_raster2Ptr
◆ m_raster3Bands
std::vector< unsigned int > te::rp::ComposerRule::m_raster3Bands |
|
protected |
Input raster 3 band indexes to use.
Definition at line 70 of file ComposerRule.h.
◆ m_raster3Ptr
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/rp/ComposerRule.h