18 #ifndef PIC_GL_TONE_MAPPING_GET_ALL_EXPOSURES_HPP 19 #define PIC_GL_TONE_MAPPING_GET_ALL_EXPOSURES_HPP 21 #include "../../base.hpp" 23 #include "../../tone_mapping/get_all_exposures.hpp" 25 #include "../../gl/filtering/filter_simple_tmo.hpp" 48 for(
unsigned int i = 0; i < fstops.size(); i++) {
49 flt.
update(gamma, fstops[i]);
52 expo->
exposure = powf(2.0f, fstops[i]);
53 expo->
clamp(0.0f, 1.0f);
PIC_INLINE ImageGLVec getAllExposuresImagesGL(ImageGL *imgIn, float gamma=2.2f)
getAllExposuresImagesGL converts an HDR image into a stack of LDR images
Definition: get_all_exposures.hpp:34
void clamp(float a, float b)
clamp
PIC_INLINE ImageGLVec SingleGL(ImageGL *img)
SingleGL creates a single for filters input.
Definition: image_vec.hpp:39
The ImageGL class.
Definition: image.hpp:42
float exposure
Definition: filter_radial_basis_function.hpp:79
The FilterGLSimpleTMO class.
Definition: filter_simple_tmo.hpp:30
virtual ImageGL * Process(ImageGLVec imgIn, ImageGL *imgOut)
Process.
Definition: display.hpp:258
void update(float gamma, float fstop)
update
Definition: filter_simple_tmo.hpp:82
PIC_INLINE std::vector< float > getAllExposures(Image *imgIn)
getAllExposures computes all required exposure values for reconstructing the input image using histog...
Definition: get_all_exposures.hpp:107
#define PIC_INLINE
Definition: base.hpp:33
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
std::vector< ImageGL * > ImageGLVec
ImageGLVec an std::vector of pic::ImageGL.
Definition: image_vec.hpp:32