A series of well-known filtering algorithms for images, linear and non-linear..
More...
#include <Filter.h>
|
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...
|
|
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...
|
|
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...
|
|
A series of well-known filtering algorithms for images, linear and non-linear..
Definition at line 47 of file Filter.h.
typedef bool(Filter::* te::rp::Filter::FilterMethodPointerT) (const te::rst::Raster &srcRaster, const unsigned int srcBandIdx, te::rst::Raster &dstRaster, const unsigned int dstBandIdx, const bool useProgress) |
|
protected |
Type definition for a filter method pointer.
- Parameters
-
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. |
- Returns
- true if ok, false on errors.
Definition at line 162 of file Filter.h.
te::rp::Filter::Filter |
( |
| ) |
|
te::rp::Filter::~Filter |
( |
| ) |
|
bool te::rp::Filter::DilationFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the dilation filter over the source raster band.
- Parameters
-
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. |
bool te::rp::Filter::ErosionFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the erosion filter over the source raster band.
- Parameters
-
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. |
Executes the algorithm using the supplied parameters.
- Parameters
-
outputParams | Output parameters. |
- Returns
- true if OK, false on errors.
Implements te::rp::Algorithm.
Initialize the algorithm instance making it ready for execution.
- Parameters
-
inputParams | Input parameters. |
- Returns
- true if OK, false on errors.
- Note
- A return error string can be obtained via te::rp::Module::getLastLogStr()
Implements te::rp::Algorithm.
bool te::rp::Filter::isInitialized |
( |
| ) |
const |
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
- Returns
- true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
bool te::rp::Filter::MeanFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the mean filter over the source raster band.
- Parameters
-
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. |
bool te::rp::Filter::MedianFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the median filter over the source raster band.
- Parameters
-
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. |
bool te::rp::Filter::ModeFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the mode filter over the source raster band.
- Parameters
-
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. |
static bool te::rp::Filter::OrderFunction |
( |
double |
i, |
|
|
double |
j |
|
) |
| |
|
staticprotected |
Returns true if i < j.
- Returns
- Returns true if i < j.
void te::rp::Filter::reset |
( |
| ) |
|
throw | ( | te::rp::Exception |
| ) | | |
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Implements te::rp::Algorithm.
bool te::rp::Filter::RobertsFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the Roberts filter over the source raster band.
- Parameters
-
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. |
bool te::rp::Filter::SobelFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the Sobel filter over the source raster band.
- Parameters
-
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. |
bool te::rp::Filter::UserDefinedFilter |
( |
const te::rst::Raster & |
srcRaster, |
|
|
const unsigned int |
srcBandIdx, |
|
|
te::rst::Raster & |
dstRaster, |
|
|
const unsigned int |
dstBandIdx, |
|
|
const bool |
useProgress |
|
) |
| |
|
protected |
Applay the user defined filter over the source raster band.
- Parameters
-
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. |
Input parameters.
Definition at line 168 of file Filter.h.
bool te::rp::Filter::m_isInitialized |
|
protected |
Is this instance already initialized?
Definition at line 166 of file Filter.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/rp/Filter.h