Murl::IFilter Interface Referenceabstract

The filter interface. More...

#include "murl_i_filter.h"

Inheritance diagram for Murl::IFilter:

Public Member Functions

virtual ~IFilter ()
 The destructor.
 
virtual Double GetWidth () const =0
 Get the filter width. More...
 
virtual void SetWidth (Double width)=0
 Set the filter width. More...
 
virtual Double Apply (Double dValH) const =0
 Apply the filter horizontally. More...
 
virtual Double Apply (Double dValH, Double dValV) const =0
 Apply the filter horizontally and vertically. More...
 

Detailed Description

The filter interface.

Member Function Documentation

◆ GetWidth()

virtual Double Murl::IFilter::GetWidth ( ) const
pure virtual

Get the filter width.

Returns
The filter width.

Implemented in Murl::Util::Filter.

◆ SetWidth()

virtual void Murl::IFilter::SetWidth ( Double  width)
pure virtual

Set the filter width.

Parameters
widthThe filter width.

Implemented in Murl::Util::Filter.

◆ Apply() [1/2]

virtual Double Murl::IFilter::Apply ( Double  dValH) const
pure virtual

Apply the filter horizontally.

Parameters
dValHThe horizontal distance in range [-filterWidth .. filterWidth].
Returns
The filtered value or zero if distance is out of range.

Implemented in Murl::Util::GaussianFilter, Murl::Util::BilinearFilter, and Murl::Util::BoxFilter.

◆ Apply() [2/2]

virtual Double Murl::IFilter::Apply ( Double  dValH,
Double  dValV 
) const
pure virtual

Apply the filter horizontally and vertically.

Parameters
dValHThe horizontal distance in range [-filterWidth .. filterWidth].
dValVThe vertical distance in range [-filterWidth .. filterWidth].
Returns
The filtered value or zero if any distance is out of range.

Implemented in Murl::Util::GaussianFilter, Murl::Util::BilinearFilter, and Murl::Util::BoxFilter.


The documentation for this interface was generated from the following file:
  • murl_i_filter.h


Copyright © 2011-2018 Spraylight GmbH.