| 
    HDK
    
   | 
 
#include <filter.h>
Public Member Functions | |
| Filter2D (float width, float height) | |
| virtual | ~Filter2D (void) | 
| float | width (void) const | 
| Get the width of the filter.  More... | |
| float | height (void) const | 
| Get the height of the filter.  More... | |
| virtual bool | separable () const | 
| virtual float | operator() (float x, float y) const =0 | 
| virtual float | xfilt (float x) const | 
| virtual float | yfilt (float y) const | 
| virtual string_view | name (void) const =0 | 
| Return the name of the filter, e.g., "box", "gaussian".  More... | |
Static Public Member Functions | |
| static Filter2D * | create (string_view filtername, float width, float height) | 
| static void | destroy (Filter2D *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 | 
| float | m_h | 
Filter2D is the abstract data type for a 2D 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: Filter2D *myfilt = Filter2::create ("box", 1, 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 and y position (relative to filter center).
      
  | 
  inlinevirtual |