Filter to apply CS filter (comparison and selection) The filter enhances edges by converting raster values that are close to the local mean to new, locally defined values that are farther from the mean. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_CS (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, int RankParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| FILTER_FOCAL_CS (STAGE *pSourceImage, bool TakeOwnershipSource, int RankParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| virtual | ~FILTER_FOCAL_CS () |
Filter to apply CS filter (comparison and selection) The filter enhances edges by converting raster values that are close to the local mean to new, locally defined values that are farther from the mean.
The CS filter ranks the values within the filter window in numerical order (number of values = N), and calculates the mean raster value for the current filter window. User defined Rank Parameter identifies a pair of rank numbers symmetrical about the mean. The raster values corresponding to these rank numbers for the current filter window provide the two possible choices for the filter output value. If the filter input value is less than the mean, the lower raster value is used for the filter output. If the filter input value is greater than the mean, the higher value is used.
| SPATMOD::IMAGE::FILTER_FOCAL_CS::FILTER_FOCAL_CS | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| int | RankParam, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| RankParam | Rank Parameter, defines the two possible output values used from the sorted array | |
| 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_CS::FILTER_FOCAL_CS | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| int | RankParam, | |||
| 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 | |
| RankParam | Rank Parameter, defines the two possible output values used from the sorted array | |
| 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_CS::~FILTER_FOCAL_CS | ( | ) | [virtual] |
Destructor.
1.6.1