SPATMOD::IMAGE::FILTER_FOCAL_CS Class Reference

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>

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

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

SPATMOD::IMAGE::FILTER_FOCAL_CS::FILTER_FOCAL_CS ( STAGE pSourceImage,
bool  TakeOwnershipSource,
int  RankParam,
UINT32  NumFocalRows,
UINT32  NumFocalColumns,
double  AmountFilterPct = 100.0 
)

Constructor.

Parameters:
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.

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
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.


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

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