class CMHNFilter

Performs the maximum homogenity neighborhood filter operation on each selected channel. More...

Definition#include <./CMHNFilter.h>
Template formCMHNFilter<class Type>
InheritsCTransformation [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

int iMaskWidth

iMaskWidth

[protected]

int iMaskHeight

iMaskHeight

[protected]

int iNewValOp

iNewValOp

[protected]

float** ppfMask

ppfMask

[protected]

float* pfRegion

pfRegion

[protected]

float afMean[9]

afMean[9]

[protected]

float afVariance[9]

afVariance[9]

[protected]

 CMHNFilter ()

CMHNFilter

Constructor

 ~CMHNFilter ()

~CMHNFilter

Destructor

Type  scanSingleChannelRegion (const CImage& tSrc,int iX,int iY)

scanSingleChannelRegion

void  setParameters (float* pfParameters)

setParameters

Sets all filter parameters.

Parameters:
Parameter0: size of neighborhood mask (5, 7, 9, ...)
Parameter1: operation for new pixel value (0 = mean, 1 = median )

void  setSize (int iSize)

setSize

Sets the size of the neighborhood mask.

Parameters:
iSizesize of neighborhood mask (5, 7, 9, ...)

void  setNewValOp (int iNewValOp)

setNewValOp

Sets the method for calculating the new pixel value. 0 -> new value is the mean of the region with lowest variance 1 -> new value is median of the region with lowest variance

Parameters:
iNewValOpoperation for new pixel value (0 = mean, 1 = median )

void  preOperation ()

preOperation

Reimplemented from CTransformation.

void  postOperation ()

postOperation

Reimplemented from CTransformation.

void  singleChannelOperation (const CImage& tSrc, CImage& tTgt)

singleChannelOperation

Reimplemented from CTransformation.