#ifndef CG1_TRACER_BLOOM_H #define CG1_TRACER_BLOOM_H #include "common/texture.h" #include "common/vector3d.h" class Bloom { public: Bloom(CImg& image, float threshold, Texture& thresholdImg); CImg bloom(int kernelSize, float sigma, float intensity); private: CImg convolution(CImg &img, CImg &kernel); CImg computeGaussianKernel(int kernelSize, float sigma); CImg image; float threshold; }; #endif //CG1_TRACER_BLOOM_H