Filter to apply LUM filter (Lower-Upper-Middle) The Lower-Upper-Middle (LUM) filter is a nonlinear edge-enhancement filter that simultaneously suppresses image noise. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_LUM (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, int EdgeParam, int NoiseParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| FILTER_FOCAL_LUM (STAGE *pSourceImage, bool TakeOwnershipSource, int EdgeParam, int NoiseParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| virtual | ~FILTER_FOCAL_LUM () |
Filter to apply LUM filter (Lower-Upper-Middle) The Lower-Upper-Middle (LUM) filter is a nonlinear edge-enhancement filter that simultaneously suppresses image noise.
The filter first ranks the values within the filter window in numerical order. Two user-defined parameters are used to partition the resulting list of values (number of values = N), and the filter output depends upon which partition includes the value in the center of the filter window (the filter input value). Edge Parameter is an integer value that provides upper and lower rank limits for the values near the median value. If the filter input value is within the range set by Parameter A (that is, near the local median), the filter outputs the lower limit value if the input is below the median, or the upper limit value if the input value is above the median Noise Parameter controls the noise-suppression function of the filter by setting overall minimum and maximum values for the filter output.
| SPATMOD::IMAGE::FILTER_FOCAL_LUM::FILTER_FOCAL_LUM | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| int | EdgeParam, | |||
| int | NoiseParam, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| EdgeParam | Edge Enhancement Parameter, provides upper and lower rank limits for the values near the median value | |
| NoiseParam | Noise Supression Parameter, sets overall minimum and maximum values for the filter output | |
| 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_LUM::FILTER_FOCAL_LUM | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| int | EdgeParam, | |||
| int | NoiseParam, | |||
| 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 | |
| EdgeParam | Edge Enhancement Parameter, provides upper and lower rank limits for the values near the median value | |
| NoiseParam | Noise Supression Parameter, sets overall minimum and maximum values for the filter output | |
| 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_LUM::~FILTER_FOCAL_LUM | ( | ) | [virtual] |
Destructor.
1.6.1