dakku::Filter
#include <filter.h>
Inherited by dakku::BoxFilter, dakku::TriangleFilter
Public Functions
Name | |
---|---|
Filter(const Vector2f & radius) Construct a new Filter object The filter's overall extent in each direction is twice the value given in radius |
|
virtual float | evaluate(const Point2f & p) const =0 Given a 2D point which is relative to the center of the filter, the filter's value at that point is returned. |
Public Attributes
Name | |
---|---|
const Vector2f | radius filter radius |
const Vector2f | inv_radius filter radius inversion |
Public Functions Documentation
function Filter
Construct a new Filter object The filter's overall extent in each direction is twice the value given in radius
Parameters:
- radius radius of the filter
function evaluate
Given a 2D point which is relative to the center of the filter, the filter's value at that point is returned.
Parameters:
- p the given 2D point
Return: float filter's value
Reimplemented by: dakku::BoxFilter::evaluate, dakku::TriangleFilter::evaluate
Public Attributes Documentation
variable radius
filter radius
variable inv_radius
filter radius inversion
Updated on 2022-04-30 at 15:46:11 +0000