Murl::Util::BilinearFilter Class Reference
The bilinear filter class has linear interpolation. More...
#include "murl_util_filter.h"
Inheritance diagram for Murl::Util::BilinearFilter:
Public Member Functions | |
BilinearFilter (Double width=static_cast< Double >(1.0)) | |
The default constructor. More... | |
~BilinearFilter () override | |
The destructor. | |
Double | Apply (Double dValH) const override |
Apply the filter horizontally. More... | |
Double | Apply (Double dValH, Double dValV) const override |
Apply the filter horizontally and vertically. More... | |
Public Member Functions inherited from Murl::Util::Filter | |
Filter (Double width) | |
Constructor taking the filter width. More... | |
~Filter () override | |
The destructor. | |
Double | GetWidth () const override |
Implementation of IFilter::GetWidth(). More... | |
void | SetWidth (Double width) override |
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. | |
Detailed Description
The bilinear filter class has linear interpolation.
Constructor & Destructor Documentation
◆ BilinearFilter()
The default constructor.
- Parameters
-
width The filter width defaulted to 1.0.
Member Function Documentation
◆ Apply() [1/2]
Apply the filter horizontally.
- Parameters
-
dValH The horizontal distance in range [-filterWidth .. filterWidth].
- Returns
- (width - abs(dValH)) or zero if distance is out of range.
Implements Murl::IFilter.
References Murl::Math::Abs(), and Murl::Util::Filter::mWidth.
◆ Apply() [2/2]
Apply the filter horizontally and vertically.
- Parameters
-
dValH The horizontal distance in range [-filterWidth .. filterWidth]. dValV The vertical distance in range [-filterWidth .. filterWidth].
- Returns
- ((width - abs(dValH)) * (width - abs(dValV))) or zero if distance is out of 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