X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=deconvolution_sharpen_effect.h;h=c2ccbcb608ccd7916d7bf3763712bef2b06bc348;hp=a0b405a6c7f829f5d94cc4bf3ca3429c85968e45;hb=9553f87faab0af4989db0369d732ef37db0a72e9;hpb=7af4d1b54ba141fdb74cd13ddc6110708855d157 diff --git a/deconvolution_sharpen_effect.h b/deconvolution_sharpen_effect.h index a0b405a..c2ccbcb 100644 --- a/deconvolution_sharpen_effect.h +++ b/deconvolution_sharpen_effect.h @@ -1,5 +1,5 @@ -#ifndef _DECONVOLUTION_SHARPEN_EFFECT_H -#define _DECONVOLUTION_SHARPEN_EFFECT_H 1 +#ifndef _MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H +#define _MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H 1 // DeconvolutionSharpenEffect is an effect that sharpens by way of deconvolution // (i.e., trying to reverse the blur kernel, as opposed to just boosting high @@ -19,13 +19,18 @@ // // Jain, Anil K.: “Fundamentals of Digital Image Processing”, Prentice Hall, 1988. +#include +#include +#include + #include "effect.h" -#include +namespace movit { class DeconvolutionSharpenEffect : public Effect { public: DeconvolutionSharpenEffect(); + virtual ~DeconvolutionSharpenEffect(); virtual std::string effect_type_id() const { return "DeconvolutionSharpenEffect"; } std::string output_fragment_shader(); @@ -62,8 +67,12 @@ private: Eigen::MatrixXf g; int last_R; float last_circle_radius, last_gaussian_radius, last_correlation, last_noise; + + float *uniform_samples; void update_deconvolution_kernel(); }; -#endif // !defined(_DECONVOLUTION_SHARPEN_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_DECONVOLUTION_SHARPEN_EFFECT_H)