The Olympic filter is a variant of a low pass (averaging) filter. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_OLYMPIC (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, int NumDiscard, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| FILTER_FOCAL_OLYMPIC (STAGE *pSourceImage, bool TakeOwnershipSource, int NumDiscard, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| virtual | ~FILTER_FOCAL_OLYMPIC () |
The Olympic filter is a variant of a low pass (averaging) filter.
The Olympic filter ranks the values within the filter window (number of values = N), and discards high and low values before calculating the mean of those remaining.
| SPATMOD::IMAGE::FILTER_FOCAL_OLYMPIC::FILTER_FOCAL_OLYMPIC | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| int | NumDiscard, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| NumDiscard | Number of values discarded at each end of the distribution | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window | |
| AmountFilterPct | Amount of filter to apply (percentage, 0-100) |
| SPATMOD::IMAGE::FILTER_FOCAL_OLYMPIC::FILTER_FOCAL_OLYMPIC | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| int | NumDiscard, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
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 | |
| NumDiscard | Number of values discarded at each end of the distribution | |
| NumFocalRows | Number of rows in processing window | |
| NumFocalColumns | Number of columns in processing window | |
| AmountFilterPct | Amount of filter to apply (percentage, 0-100) |
| virtual SPATMOD::IMAGE::FILTER_FOCAL_OLYMPIC::~FILTER_FOCAL_OLYMPIC | ( | ) | [virtual] |
Destructor.
1.6.1