A series of well-known filtering algorithms for images, linear and non-linear.. More...
#include <Filter.h>
Classes | |
| class | InputParameters |
| Filter input parameters. More... | |
| class | OutputParameters |
| Filter output parameters. More... | |
Public Member Functions | |
| bool | execute (AlgorithmOutputParameters &outputParams) _NOEXCEPT_OP(false) |
| Executes the algorithm using the supplied parameters. More... | |
| Filter () | |
| const std::string & | getErrorMessage () const |
| Return the current error message if there is any. More... | |
| bool | initialize (const AlgorithmInputParameters &inputParams) _NOEXCEPT_OP(false) |
| Initialize the algorithm instance making it ready for execution. More... | |
| bool | isInitialized () const |
| Returns true if the algorithm instance is initialized and ready for execution. More... | |
| void | reset () _NOEXCEPT_OP(false) |
| Clear all internal allocated objects and reset the algorithm to its initial state. More... | |
| ~Filter () | |
Protected Types | |
| typedef bool(Filter::* | FilterMethodPointerT) (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Type definition for a filter method pointer. More... | |
Protected Member Functions | |
| bool | DilationFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the dilation filter over the source raster band. More... | |
| bool | ErosionFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the erosion filter over the source raster band. More... | |
| bool | MeanFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the mean filter over the source raster band. More... | |
| bool | MedianFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the median filter over the source raster band. More... | |
| bool | ModeFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the mode filter over the source raster band. More... | |
| void | ResetConvBuffer (unsigned int lines, unsigned int columns) |
| Resets the convolution buffer. More... | |
| void | ResetConvMatrix (unsigned int lines, unsigned int columns) |
| Resets the convolution matrix. More... | |
| bool | RobertsFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the Roberts filter over the source raster band. More... | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. More... | |
| void | setMorfConvMatrix () |
| Reset the convolution matrix and fills it with the user supplied matrix or with 1's if that matrix wasn't supplied. More... | |
| bool | SobelFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the Sobel filter over the source raster band. More... | |
| void | UpdateConvBuffer (const te::rst::Band &inBand, unsigned int line) |
| Updates the convolution buffer with a new raster line (rool up + read new raster line). More... | |
| bool | UserDefinedFilter (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
| Applay the user defined filter over the source raster band. More... | |
Static Protected Member Functions | |
| static bool | OrderFunction (double i, double j) |
| Returns true if i < j. More... | |
Protected Attributes | |
| double ** | m_convBuffer |
| Convolution Buffer. More... | |
| unsigned int | m_convBufferColumns |
| Convolution Buffer columns. More... | |
| unsigned int | m_convBufferLines |
| Convolution Buffer lines. More... | |
| double ** | m_convMatrix |
| Convolution matrix element. More... | |
| unsigned int | m_convMatrixColumns |
| Convolution matrix element columns. More... | |
| unsigned int | m_convMatrixLines |
| Convolution matrix element lines. More... | |
| Filter::InputParameters | m_inputParameters |
| Input parameters. More... | |
| bool | m_isInitialized |
| Is this instance already initialized? More... | |
Private Attributes | |
| std::string | m_errorMessage |
| Current error message. More... | |
A series of well-known filtering algorithms for images, linear and non-linear..
|
protected |
Type definition for a filter method pointer.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
| te::rp::Filter::Filter | ( | ) |
| te::rp::Filter::~Filter | ( | ) |
|
protected |
Applay the dilation filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protected |
Applay the erosion filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
virtual |
Executes the algorithm using the supplied parameters.
| outputParams | Output parameters. |
Implements te::rp::Algorithm.
|
inherited |
Return the current error message if there is any.
|
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.
|
protected |
Applay the mean filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protected |
Applay the median filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protected |
Applay the mode filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
staticprotected |
Returns true if i < j.
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Reimplemented from te::rp::Algorithm.
|
protected |
Resets the convolution buffer.
| lines | Convolution buffer lines. |
| columns | Convolution buffer columns. |
|
protected |
Resets the convolution matrix.
| lines | Convolution matrix lines. |
| columns | Convolution matrix columns. |
|
protected |
Applay the Roberts filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
|
protected |
Reset the convolution matrix and fills it with the user supplied matrix or with 1's if that matrix wasn't supplied.
|
protected |
Applay the Sobel filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protected |
Updates the convolution buffer with a new raster line (rool up + read new raster line).
| inBand | Source raster band. |
| line | Raster line. |
| band | Raster band. |
|
protected |
Applay the user defined filter over the source raster band.
| srcRaster | Source raster. |
| srcBandIdx | Source raster band index. |
| dstRaster | Destination raster. |
| dstBandIdx | Destination raster band index. |
| useProgress | if true, the progress interface must be used. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
privateinherited |
Current error message.
Definition at line 104 of file Algorithm.h.
|
protected |
|
protected |