Filter to apply WMMR-MED filter (weighted majority with minimum range - median) The process first ranks the values within the filter window in numerical order (number of values = N). More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_WMMR (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns) | |
| FILTER_FOCAL_WMMR (STAGE *pSourceImage, bool TakeOwnershipSource, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns) | |
| virtual | ~FILTER_FOCAL_WMMR () |
Filter to apply WMMR-MED filter (weighted majority with minimum range - median) The process first ranks the values within the filter window in numerical order (number of values = N).
The filter then finds a fixed-size subset in which the values are most closely spaced, and calculates a median value from it (WMMR-MED value). The number of values in the subset is (N + 1) / 2. The output value of the filter is a user-controlled weighted average of the input raster value and the WMMR-MED value.
| SPATMOD::IMAGE::FILTER_FOCAL_WMMR::FILTER_FOCAL_WMMR | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| double | WeightParam, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| WeightParam | User-controlled weighted average of the input raster value and the WMMR-MED value | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window |
| SPATMOD::IMAGE::FILTER_FOCAL_WMMR::FILTER_FOCAL_WMMR | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| double | WeightParam, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns | |||
| ) |
Constructor with mask to determine areas to filter.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| pMaskImage | Mask, must have single component sample | |
| TakeOwnershipMask | Filter takes ownership of mask stage and will delete when needed | |
| WeightParam | User-controlled weighted average of the input raster value and the WMMR-MED value | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window |
| virtual SPATMOD::IMAGE::FILTER_FOCAL_WMMR::~FILTER_FOCAL_WMMR | ( | ) | [virtual] |
Destructor.
1.6.1