Skip to content

src/filters/box.h

Namespaces

Name
dakku
dakku namespace

Classes

Name
class dakku::BoxFilter
box filter the box filter is simple, just return \(1\) for all values

Source code

#ifndef DAKKU_FILTERS_BOX_H_
#define DAKKU_FILTERS_BOX_H_
#include <filters/fwd.h>

namespace dakku {

class DAKKU_EXPORT_FILTERS BoxFilter : public Filter {
 public:
  using Filter::Filter;

  [[nodiscard]] float evaluate(const Point2f &p) const override;
};

DAKKU_EXPORT_FILTERS Filter *create_box_filter(float x_width, float y_width);

DAKKU_DECLARE_LUA_OBJECT(BoxFilter, DAKKU_EXPORT_FILTERS);
}  // namespace dakku
#endif

Updated on 2022-04-30 at 15:46:11 +0000