dakku::BoxFilter
box filter the box filter is simple, just return \(1\) for all values
#include <box.h>
Inherits from dakku::Filter
Public Functions
Name | |
---|---|
virtual float | evaluate(const Point2f & p) const override Given a 2D point which is relative to the center of the filter, the filter's value at that point is returned. |
Filter(const Vector2f & radius) Construct a new Filter object The filter's overall extent in each direction is twice the value given in radius |
Additional inherited members
Public Attributes inherited from dakku::Filter
Name | |
---|---|
const Vector2f | radius filter radius |
const Vector2f | inv_radius filter radius inversion |
Public Functions Documentation
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
Reimplements: dakku::Filter::evaluate
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
Updated on 2022-04-30 at 15:46:11 +0000