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) throw ( te::rp::Exception ) |
Executes the algorithm using the supplied parameters. More... | |
Filter () | |
bool | initialize (const AlgorithmInputParameters &inputParams) throw ( te::rp::Exception ) |
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 () throw ( te::rp::Exception ) |
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 | |
void | ConvBufferRoolup (unsigned int count) |
Rools up the convolution buffer count lines. More... | |
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... | |
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... | |
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. 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... | |
Filter::InputParameters | m_inputParameters |
Input parameters. More... | |
bool | m_isInitialized |
Is this instance already initialized? 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 |
Rools up the convolution buffer count lines.
count | Count times to rool convolution buffer. |
|
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.
|
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.
Implements te::rp::Algorithm.
|
protected |
Resets the convolution buffer.
lines | Convolution buffer lines. |
columns | Convolution buffer 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. |
|
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.
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 |