The Local Contrast filter performs a locally adaptive, spatially varying contrast enhancement. More...
#include <spatmod/imagefilterfocal.h>

Public Member Functions | |
| FILTER_FOCAL_CONTRAST (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, STATSVALIDITY StatsValidity, double SigmaParam, double ContrastParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| FILTER_FOCAL_CONTRAST (STAGE *pSourceImage, bool TakeOwnershipSource, STATSVALIDITY StatsValidity, double SigmaParam, double ContrastParam, UINT32 NumFocalRows, UINT32 NumFocalColumns, double AmountFilterPct=100.0) | |
| virtual | ~FILTER_FOCAL_CONTRAST () |
The Local Contrast filter performs a locally adaptive, spatially varying contrast enhancement.
The amount of enhancement varies as a function of the existing contrast in the local neighborhood, expressed as the ratio of the global mean to the local standard deviation. Areas with low inherent contrast are enhanced more than areas which already have high contrast
| SPATMOD::IMAGE::FILTER_FOCAL_CONTRAST::FILTER_FOCAL_CONTRAST | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STATSVALIDITY | StatsValidity, | |||
| double | SigmaParam, | |||
| double | ContrastParam, | |||
| UINT32 | NumFocalRows, | |||
| UINT32 | NumFocalColumns, | |||
| double | AmountFilterPct = 100.0 | |||
| ) |
Constructor.
| pSourceImage | Source image stage | |
| TakeOwnershipSource | Filter takes ownership of source image | |
| StatsValidity | How to compute image statisitcs used in filter (fastest should be used for display, exact for processing) | |
| SigmaParam | User-controlled weight applied to sigma | |
| ContrastParam | Amount of local contrast enhancement that is applied throughout the 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_CONTRAST::FILTER_FOCAL_CONTRAST | ( | STAGE * | pSourceImage, | |
| bool | TakeOwnershipSource, | |||
| STAGE * | pMaskImage, | |||
| bool | TakeOwnershipMask, | |||
| STATSVALIDITY | StatsValidity, | |||
| double | SigmaParam, | |||
| double | ContrastParam, | |||
| 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 | |
| StatsValidity | How to compute image statisitcs used in filter (fastest should be used for display, exact for processing) | |
| SigmaParam | User-controlled weight applied to sigma | |
| ContrastParam | Amount of local contrast enhancement that is applied throughout the image | |
| 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_CONTRAST::~FILTER_FOCAL_CONTRAST | ( | ) | [virtual] |
Destructor.
1.6.1