The box filter class has not interpolation. More...

#include "murl_util_filter.h"

Inheritance diagram for Murl::Util::BoxFilter:

Public Member Functions

 BoxFilter (Double width=Double(0.5))
 The default constructor. More...
 
virtual ~BoxFilter ()
 The destructor.
 
virtual Double Apply (Double dValH) const
 Apply the filter horizontally. More...
 
virtual Double Apply (Double dValH, Double dValV) const
 Apply the filter horizontally and vertically. More...
 
- Public Member Functions inherited from Murl::Util::Filter
 Filter (Double width)
 Constructor taking the filter width. More...
 
virtual ~Filter ()
 The destructor.
 
virtual Double GetWidth () const
 Implementation of IFilter::GetWidth(). More...
 
virtual void SetWidth (Double width)
 Implementation of IFilter::SetWidth(). More...
 
- Public Member Functions inherited from Murl::IFilter
virtual ~IFilter ()
 The destructor.
 

Additional Inherited Members

- Protected Attributes inherited from Murl::Util::Filter
Double mWidth
 The filter width. More...
 

Detailed Description

The box filter class has not interpolation.

Constructor & Destructor Documentation

◆ BoxFilter()

Murl::Util::BoxFilter::BoxFilter ( Double  width = Double(0.5))
inline

The default constructor.

Parameters
widthThe filter width defaulted to 0.5.

Member Function Documentation

◆ Apply() [1/2]

virtual Double Murl::Util::BoxFilter::Apply ( Double  dValH) const
inlinevirtual

Apply the filter horizontally.

Parameters
dValHThe horizontal distance in range [-filterWidth .. filterWidth].
Returns
1.0 if distance is in filter width range.

Implements Murl::IFilter.

References Murl::Math::Abs(), and Murl::Util::Filter::mWidth.

◆ Apply() [2/2]

virtual Double Murl::Util::BoxFilter::Apply ( Double  dValH,
Double  dValV 
) const
inlinevirtual

Apply the filter horizontally and vertically.

Parameters
dValHThe horizontal distance in range [-filterWidth .. filterWidth].
dValVThe vertical distance in range [-filterWidth .. filterWidth].
Returns
1.0 if both distances are in filter width range.

Implements Murl::IFilter.

References Murl::Math::Abs(), and Murl::Util::Filter::mWidth.


The documentation for this class was generated from the following file:
  • murl_util_filter.h


Copyright © 2011-2018 Spraylight GmbH.