#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)
|
|
| MinFilter () |
|
| MinFilter (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 153 of file Resample.h.
◆ Ptr
◆ CPtr
◆ MinFilter() [1/2]
◆ MinFilter() [2/2]
MinFilter::MinFilter |
( |
const float | width | ) |
|
|
inline |
◆ eval()
virtual float MinFilter::eval |
( |
const float | t | ) |
const |
|
inlinevirtual |
Evaluates the filter at coordinate 't'.
Implements Filter.
Definition at line 169 of file Resample.h.
170 {
172 if (t <= 0.5f) {
173 return 1.0f;
174 } else {
175 return 0.0f;
176 }
177 }
References m_width.
◆ support()
virtual float MinFilter::support |
( |
| ) |
const |
|
inlinevirtual |
◆ initialValue()
virtual float MinFilter::initialValue |
( |
| ) |
const |
|
inlinevirtual |
Initial value (zero by default, but need to be different for min/max)
Reimplemented from Filter.
Definition at line 182 of file Resample.h.
183 {
184 return std::numeric_limits<float>::max();
185 }
◆ op() [1/2]
template<typename T >
static void MinFilter::op |
( |
Imath::Vec3< T > & | accumValue, |
|
|
const Imath::Vec3< T > | value ) |
|
inlinestatic |
Definition at line 188 of file Resample.h.
189 {
190 accumValue.x = std::min(accumValue.x, value.x);
191 accumValue.y = std::min(accumValue.y, value.y);
192 accumValue.z = std::min(accumValue.z, value.z);
193 }
◆ op() [2/2]
template<typename Value_T >
static void MinFilter::op |
( |
Value_T & | accumValue, |
|
|
const Value_T | value ) |
|
inlinestatic |
Definition at line 196 of file Resample.h.
197 {
198 accumValue = std::min(accumValue, value);
199 }
◆ isAnalytic
const bool MinFilter::isAnalytic = true |
|
static |
◆ m_width
const float MinFilter::m_width |
|
private |
The documentation for this struct was generated from the following file: