#include <Resample.h>
|
virtual float | eval (const float x) const |
| Evaluates the filter at coordinate 't'.
|
|
virtual float | initialValue () const |
| Initial value (zero by default, but need to be different for min/max)
|
|
| MaxFilter () |
|
| MaxFilter (const float width) |
|
virtual float | support () const |
| Radial width of the filter (half of diameter)
|
|
|
template<typename T > |
static void | op (Imath::Vec3< T > &accumValue, const Imath::Vec3< T > value) |
|
template<typename Value_T > |
static void | op (Value_T &accumValue, const Value_T value) |
|
Definition at line 209 of file Resample.h.
◆ Ptr
◆ CPtr
◆ MaxFilter() [1/2]
◆ MaxFilter() [2/2]
MaxFilter::MaxFilter |
( |
const float | width | ) |
|
|
inline |
◆ eval()
virtual float MaxFilter::eval |
( |
const float | t | ) |
const |
|
inlinevirtual |
Evaluates the filter at coordinate 't'.
Implements Filter.
Definition at line 225 of file Resample.h.
226 {
228 if (t <= 0.5f) {
229 return 1.0f;
230 } else {
231 return 0.0f;
232 }
233 }
References m_width.
◆ support()
virtual float MaxFilter::support |
( |
| ) |
const |
|
inlinevirtual |
◆ initialValue()
virtual float MaxFilter::initialValue |
( |
| ) |
const |
|
inlinevirtual |
Initial value (zero by default, but need to be different for min/max)
Reimplemented from Filter.
Definition at line 238 of file Resample.h.
239 {
240 return -std::numeric_limits<float>::max();
241 }
◆ op() [1/2]
template<typename T >
static void MaxFilter::op |
( |
Imath::Vec3< T > & | accumValue, |
|
|
const Imath::Vec3< T > | value ) |
|
inlinestatic |
Definition at line 245 of file Resample.h.
246 {
247 accumValue.x = std::max(accumValue.x, value.x);
248 accumValue.y = std::max(accumValue.y, value.y);
249 accumValue.z = std::max(accumValue.z, value.z);
250 }
◆ op() [2/2]
template<typename Value_T >
static void MaxFilter::op |
( |
Value_T & | accumValue, |
|
|
const Value_T | value ) |
|
inlinestatic |
Definition at line 253 of file Resample.h.
254 {
255 accumValue = std::max(accumValue, value);
256 }
◆ isAnalytic
const bool MaxFilter::isAnalytic = true |
|
static |
◆ m_width
const float MaxFilter::m_width |
|
private |
The documentation for this struct was generated from the following file: