Main Page | Class Hierarchy | Class List | File List | Class Members

SphericalFilter Class Reference

Abstract sphereical filter class. More...

#include <MedianFilter.h>

Inheritance diagram for SphericalFilter:

SphericalFilterBCC SphericalFilterCC GaussianSphericalFilterBCC MedianSphericalFilterBCC GaussianSphericalFilterCC MedianSphericalFilterCC List of all members.

Public Member Functions

 SphericalFilter ()
 Default constructor.
void filter (const Dataset &in, Dataset &out)
 Filters each element with virtual filter function.
int getNeighborhoodSize () const
 Get number of neighbors covered by the spherical filter.
void print () const
 Print for debugging purposes.
double getRadius () const
 Get radius of the spherical filter.
virtual void setRadius (const double &r)=0
 Radius is set depending on grid type.

Static Public Member Functions

static double gaussianFunc (const double &sigma, const double &x, const double &y, const double &z)
 3D Gaussian function.
static double gaussianFunc (const double &sigma, const Vector3i &p)
 3D Gaussian function; used by two base classes.

Protected Member Functions

virtual double filter (const Dataset &in, int i)=0
 Filtering operation differs depending on filter type and grid type.

Protected Attributes

Neighborhood m_neighborhood
 Relative locations of samples covered by the filter.
double m_weights [MAX_NUM]
 Weights corresponding to the neighbor locations.
double m_radius
 Radius of the filter.

Detailed Description

Abstract sphereical filter class.


Member Data Documentation

double SphericalFilter::m_radius [protected]
 

Radius of the filter.

Computed to be the length of the distance from the center of the filter to the farthest neighbor that the filter covers.

double SphericalFilter::m_weights[MAX_NUM] [protected]
 

Weights corresponding to the neighbor locations.

Normalized so the weights sum to 1.


The documentation for this class was generated from the following file:
Generated on Thu Apr 13 04:55:57 2006 by  doxygen 1.4.4