#ifndef CG1_TRACER_BLOOMSHADER_H #define CG1_TRACER_BLOOMSHADER_H #include "common/texture.h" #include "common/vector3d.h" class Bloomshader { public: Bloomshader(CImg image); CImg bloom(float threshold, int kernelSize, float sigma, float intensity); private: void scaleBrightness(float scale); void gaussianBlur(int kernelSize, float sigma); CImg convolution(CImg &img, CImg &kernel); CImg computeGaussianKernel(int kernelSize, float sigma); CImg image; }; #endif //CG1_TRACER_BLOOMSHADER_H