ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcbMEDIAN Class Reference

#include <ngcbMEDIAN.hpp>

Public Member Functions

ngcbMEDIANoperator= (const ngcbMEDIAN &other)
 Operator =.
 
 ngcbMEDIAN (const ngcbMEDIAN &other)
 Copy constructor.
 
 ngcbMEDIAN (int size=3)
 Constructor specifying the filter window size.
 
virtual ~ngcbMEDIAN ()
 Destructor.
 
int Size ()
 
int Num ()
 Return number of current elements in the filter.
 
int Filled ()
 Filter is filled.
 
void Clear ()
 Clear filter.
 
void Save (double value)
 Save initialization value.
 
double Value ()
 Return actual filter value.
 
void Add (double value)
 Add a new value to the filter series.
 
double Process (double value)
 Add a new value to the filter series and return the filtered value.
 
void Dump (FILE *fd)
 Print filter window values to stream.
 

Public Attributes

int prefill
 Fill filter window before updating result.
 

Detailed Description

Running median filter

Constructor & Destructor Documentation

◆ ngcbMEDIAN() [1/2]

ngcbMEDIAN::ngcbMEDIAN ( const ngcbMEDIAN & other)

Copy constructor.

◆ ngcbMEDIAN() [2/2]

ngcbMEDIAN::ngcbMEDIAN ( int size = 3)
explicit

Constructor specifying the filter window size.

◆ ~ngcbMEDIAN()

ngcbMEDIAN::~ngcbMEDIAN ( )
virtual

Destructor.

Member Function Documentation

◆ Add()

void ngcbMEDIAN::Add ( double value)

Add a new value to the filter series.

◆ Clear()

void ngcbMEDIAN::Clear ( )

Clear filter.

◆ Dump()

void ngcbMEDIAN::Dump ( FILE * fd)

Print filter window values to stream.

◆ Filled()

int ngcbMEDIAN::Filled ( )

Filter is filled.

◆ Num()

int ngcbMEDIAN::Num ( )

Return number of current elements in the filter.

◆ operator=()

ngcbMEDIAN & ngcbMEDIAN::operator= ( const ngcbMEDIAN & other)

Operator =.

◆ Process()

double ngcbMEDIAN::Process ( double value)

Add a new value to the filter series and return the filtered value.

◆ Save()

void ngcbMEDIAN::Save ( double value)

Save initialization value.

◆ Size()

int ngcbMEDIAN::Size ( )

Return the actual median filter window size. A zero value indicates an allocation error.

◆ Value()

double ngcbMEDIAN::Value ( )

Return actual filter value.

Member Data Documentation

◆ prefill

int ngcbMEDIAN::prefill

Fill filter window before updating result.


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