mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
Original implementation of Sharpen Image filters
This commit is contained in:
@@ -137,6 +137,33 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class SharpenFilter : public ImageFilter
|
||||
{
|
||||
public:
|
||||
|
||||
SharpenFilter();
|
||||
|
||||
// Algorithms used for sharpen
|
||||
typedef enum {
|
||||
SHARPEN_MASK = 0,
|
||||
SHARPEN_CONVOLUTION,
|
||||
SHARPEN_EDGE,
|
||||
SHARPEN_INVALID
|
||||
} SharpenMethod;
|
||||
static const char* method_label[SHARPEN_INVALID];
|
||||
SharpenMethod method () const { return method_; }
|
||||
void setMethod(int method);
|
||||
|
||||
// implementation of FrameBufferFilter
|
||||
Type type() const override { return FrameBufferFilter::FILTER_SHARPEN; }
|
||||
|
||||
void accept (Visitor& v) override;
|
||||
|
||||
private:
|
||||
SharpenMethod method_;
|
||||
static std::vector< FilteringProgram > programs_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // IMAGEFILTER_H
|
||||
|
||||
Reference in New Issue
Block a user