This class implements the combining interpolation and restoration operation. More...
#include <Restoration.h>
Classes | |
class | InputParameters |
Restoration input parameters. More... | |
class | OutputParameters |
Restoration output parameters. More... | |
Public Member Functions | |
bool | execute (AlgorithmOutputParameters &outputParams) _NOEXCEPT_OP(false) |
Executes the algorithm using the supplied parameters. | |
const std::string & | getErrorMessage () const |
Return the current error message if there is any. | |
bool | initialize (const AlgorithmInputParameters &inputParams) _NOEXCEPT_OP(false) |
Initialize the algorithm instance making it ready for execution. | |
bool | isInitialized () const |
Returns true if the algorithm instance is initialized and ready for execution. | |
void | reset () _NOEXCEPT_OP(false) |
Clear all internal allocated objects and reset the algorithm to its initial state. | |
Restoration () | |
~Restoration () | |
Protected Member Functions | |
bool | applyFilterCoefs (const std::vector< std::vector< double > > &bandsXCoefs, const std::vector< std::vector< double > > &bandsYCoefs, const te::rst::Raster &inputRaster, te::rst::Raster &outputRaster) |
Apply the restorafion filter on the input rasters. | |
bool | getFilterCoefs (const unsigned int bandDesignation, std::vector< double > &XCoefs, std::vector< double > &YCoefs) const |
Calculate the weights of the restoration filter in the vertical and horizontal directions. | |
unsigned int | getFilterSize () const |
Return the target filter size following the current sensor. | |
void | setErrorMessage (const std::string &newErrorMessage) |
Set the current error message. | |
Static Protected Member Functions | |
static void | getDecomposedSamplingFactor (const InputParameters::SamplingFactorType &sFactortype, unsigned int &upperValue, unsigned int &lowerValue) |
Decompose sampling factor. | |
Protected Attributes | |
Restoration::InputParameters | m_inputParameters |
Input parameters. | |
bool | m_isInitialized |
Is this instance already initialized? | |
Private Attributes | |
std::string | m_errorMessage |
Current error message. | |
This class implements the combining interpolation and restoration operation.
Definition at line 47 of file Restoration.h.
te::rp::Restoration::Restoration | ( | ) |
te::rp::Restoration::~Restoration | ( | ) |
|
protected |
Apply the restorafion filter on the input rasters.
bandsXCoefs | X coeficients. |
bandsYCoefs | Y coeficients. |
inputRaster | Input raster. |
outputRaster | Pré-initialized Output raster. |
|
virtual |
Executes the algorithm using the supplied parameters.
outputParams | Output parameters. |
Implements te::rp::Algorithm.
|
staticprotected |
Decompose sampling factor.
sFactortype | Sampling factor type. |
upperValue | Upper value. |
lowerValue | Lower value. |
|
inherited |
Return the current error message if there is any.
|
protected |
Calculate the weights of the restoration filter in the vertical and horizontal directions.
bandDesignation | Sensor band designation (starting from 1). |
XCoefs | X coeficients. |
YCoefs | Y coeficients. |
|
protected |
Return the target filter size following the current sensor.
|
virtual |
Initialize the algorithm instance making it ready for execution.
inputParams | Input parameters. |
Implements te::rp::Algorithm.
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Reimplemented from te::rp::Algorithm.
|
protectedinherited |
Set the current error message.
newErrorMessage | New error message; |
|
privateinherited |
Current error message.
Definition at line 104 of file Algorithm.h.
|
protected |
Input parameters.
Definition at line 206 of file Restoration.h.
|
protected |
Is this instance already initialized?
Definition at line 204 of file Restoration.h.