SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN Class Reference

The P-Median filter is designed to suppress noise while preserving edge and line detail. More...

#include <spatmod/imagefilterfocal.h>

Inheritance diagram for SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FILTER_FOCAL_PMEDIAN (STAGE *pSourceImage, bool TakeOwnershipSource, STAGE *pMaskImage, bool TakeOwnershipMask, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns)
 FILTER_FOCAL_PMEDIAN (STAGE *pSourceImage, bool TakeOwnershipSource, double WeightParam, UINT32 NumFocalRows, UINT32 NumFocalColumns)
virtual ~FILTER_FOCAL_PMEDIAN ()

Detailed Description

The P-Median filter is designed to suppress noise while preserving edge and line detail.

The filter calculates median values for two subsets of the values in the filter window: 1) combined horizontal and vertical transects through the center cell, and 2) two diagonal transects through the center cell. These two median values are then averaged. The output of the filter is a user-controlled weighted average of the averaged median and the original center cell value.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::FILTER_FOCAL_PMEDIAN ( STAGE pSourceImage,
bool  TakeOwnershipSource,
double  WeightParam,
UINT32  NumFocalRows,
UINT32  NumFocalColumns 
)

Constructor.

Parameters:
pSourceImage Source image stage
TakeOwnershipSource Filter takes ownership of source image
WeightParam User-controlled weighted average of the input raster value and the P-Median value
NumFocalRows Number of rows in processing window
NumFocalColumns Number of columns in processing window
SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::FILTER_FOCAL_PMEDIAN ( STAGE pSourceImage,
bool  TakeOwnershipSource,
STAGE pMaskImage,
bool  TakeOwnershipMask,
double  WeightParam,
UINT32  NumFocalRows,
UINT32  NumFocalColumns 
)

Constructor with mask to determine areas to filter.

Parameters:
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
WeightParam User-controlled weighted average of the input raster value and the P-Median value
NumFocalRows Number of rows in processing window
NumFocalColumns Number of columns in processing window
virtual SPATMOD::IMAGE::FILTER_FOCAL_PMEDIAN::~FILTER_FOCAL_PMEDIAN (  )  [virtual]

Destructor.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:39:41 2012 for TNTsdk 2012 by  doxygen 1.6.1