The P-Median filter is designed to suppress noise while preserving edge and line detail. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_PMEDIAN (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns) | |
| FILTER_FOCAL_PMEDIAN (STAGE *pSourceImage, bool TakeOwnershipSource, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns) | |
| virtual | ~FILTER_FOCAL_PMEDIAN () |
The P-Median filter is designed to suppress noise while preserving edge and line detail.
The filter calculates median values for two subsets of the values in the filter window: 1) combined horizontal and vertical transects through the center cell, and 2) two diagonal transects through the center cell. These two median values are then averaged. The output of the filter is a user-controlled weighted average of the averaged median and the original center cell value.
| SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::FILTER_FOCAL_PMEDIAN | ( | 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 P-Median value | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window |
| SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::FILTER_FOCAL_PMEDIAN | ( | 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 P-Median value | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window |
| virtual SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::~FILTER_FOCAL_PMEDIAN | ( | ) | [virtual] |
Destructor.
1.6.1