18 #ifndef PIC_TONE_MAPPING_WARD_GLOBAL_TMO_HPP 19 #define PIC_TONE_MAPPING_WARD_GLOBAL_TMO_HPP 21 #include "../base.hpp" 23 #include "../filtering/filter.hpp" 24 #include "../filtering/filter_luminance.hpp" 25 #include "../tone_mapping/tone_mapping_operator.hpp" 52 images[0]->getLogMeanVal(NULL, &Lw_a);
54 float m = (1.219f + powf(
Ld_Max * 0.5f, 0.4f)) /
55 (1.219f + powf(Lw_a , 0.4f));
FilterLuminance flt_lum
Definition: ward_global_tmo.hpp:36
void assign(const Image *imgIn)
assign
Image * Process(ImageVec imgIn, Image *imgOut=NULL)
Process.
Definition: tone_mapping_operator.hpp:120
WardGlobalTMO(float Ld_Max=100.0f)
WardGlobalTMO.
Definition: ward_global_tmo.hpp:73
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
Image * ProcessAux(ImageVec imgIn, Image *imgOut)
ProcessAux.
Definition: ward_global_tmo.hpp:44
ImageVec images
Definition: tone_mapping_operator.hpp:35
The ToneMappingOperator class.
Definition: tone_mapping_operator.hpp:31
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
The FilterLuminance class.
Definition: filter_luminance.hpp:33
float Ld_Max
Definition: ward_global_tmo.hpp:35
~WardGlobalTMO()
Definition: ward_global_tmo.hpp:79
void updateImage(Image *imgIn)
updateImage
Definition: tone_mapping_operator.hpp:78
void release()
release
Definition: tone_mapping_operator.hpp:68
static Image * execute(Image *imgIn, Image *imgOut)
execute
Definition: ward_global_tmo.hpp:99
The Image class stores an image as buffer of float.
Definition: image.hpp:60
PIC_INLINE ImageVec Single(Image *img)
Single creates an std::vector which contains img; this is for filters input.
Definition: image_vec.hpp:36
The WardGlobalTMO class.
Definition: ward_global_tmo.hpp:32
Definition: bilateral_separation.hpp:25
void update(float Ld_Max=100.0f)
update
Definition: ward_global_tmo.hpp:88