Multi Level Median (MLM) The MLM filter is designed to reduce image noise (outlier values) while preserving edges, corners, and thin line detail in the image. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_MLM (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| FILTER_FOCAL_MLM (STAGE *pSourceImage, bool TakeOwnershipSource, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| virtual | ~FILTER_FOCAL_MLM () |
Multi Level Median (MLM) The MLM filter is designed to reduce image noise (outlier values) while preserving edges, corners, and thin line detail in the image.
The filter calculates separate median values for horizontal, vertical, and two diagonal transects through the central cell in the filter window. The minimum and maximum of these four values are then found. The minimum, maximum, and original center raster value are then ranked, and the median of these three values is assigned as the filter output value.
| SPATMOD::IMAGE::FILTER_FOCAL_MLM::FILTER_FOCAL_MLM | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| 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_MLM::FILTER_FOCAL_MLM | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| 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 | |
| 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_MLM::~FILTER_FOCAL_MLM | ( | ) | [virtual] |
Destructor.
1.6.1