#include <Resample.h>
|
virtual float | eval (const float x) const |
| Evaluates the filter at coordinate 't'. More...
|
|
| MitchellFilter (const float width=1.0, const float B=1.0/3.0, const float C=1.0/3.0) |
|
virtual float | support () const |
| Radial width of the filter (half of diameter) More...
|
|
Definition at line 203 of file Resample.h.
MitchellFilter::MitchellFilter |
( |
const float |
width = 1.0 , |
|
|
const float |
B = 1.0 / 3.0 , |
|
|
const float |
C = 1.0 / 3.0 |
|
) |
| |
|
inline |
virtual float MitchellFilter::eval |
( |
const float |
t | ) |
const |
|
inlinevirtual |
Evaluates the filter at coordinate 't'.
Implements Filter.
Definition at line 214 of file Resample.h.
216 const float ax = std::abs(x /
m_width);
218 return ((12 - 9 *
m_B - 6 *
m_C) * ax * ax * ax +
219 (-18 + 12 *
m_B + 6 *
m_C) * ax * ax + (6 - 2 *
m_B)) / 6;
220 }
else if ((ax >= 1) && (ax < 2)) {
221 return ((-
m_B - 6 *
m_C) * ax * ax * ax +
222 (6 *
m_B + 30 *
m_C) * ax * ax + (-12 *
m_B - 48 *
m_C) *
223 ax + (8 *
m_B + 24 *
m_C)) / 6;
virtual float MitchellFilter::support |
( |
| ) |
const |
|
inlinevirtual |
Radial width of the filter (half of diameter)
Implements Filter.
Definition at line 228 of file Resample.h.
const float MitchellFilter::m_B |
|
private |
const float MitchellFilter::m_C |
|
private |
const float MitchellFilter::m_width |
|
private |
The documentation for this struct was generated from the following file: