|
HDK
|
#include <filter.h>
Public Member Functions | |
| Filter1D (float width) | |
| virtual | ~Filter1D (void) |
| float | width (void) const |
| Get the width of the filter. More... | |
| virtual float | operator() (float x) const =0 |
| Evaluate the filter at an x position (relative to filter center) More... | |
| virtual string_view | name (void) const =0 |
| Return the name of the filter, e.g., "box", "gaussian". More... | |
Static Public Member Functions | |
| static Filter1D * | create (string_view filtername, float width) |
| static void | destroy (Filter1D *filt) |
| Destroy a filter that was created with create(). More... | |
| static int | num_filters () |
| Get the number of filters supported. More... | |
| static void | get_filterdesc (int filternum, FilterDesc *filterdesc) |
| Get the info for a particular index (0..num_filters()-1). More... | |
| static const FilterDesc & | get_filterdesc (int filternum) |
Protected Attributes | |
| float | m_w |
Filter1D is the abstract data type for a 1D filter. The filters are NOT expected to have their results normalized.
|
static |
This static function allocates and returns an instance of the specific filter implementation for the name you provide. Example use: Filter1D *myfilt = Filter1::create ("box", 1); The caller is responsible for deleting it when it's done. If the name is not recognized, return NULL.
Destroy a filter that was created with create().
|
static |
Get the info for a particular index (0..num_filters()-1).
|
static |
|
pure virtual |
Return the name of the filter, e.g., "box", "gaussian".
|
static |
Get the number of filters supported.
Evaluate the filter at an x position (relative to filter center)