18 #ifndef PIC_TONE_MAPPING_FIND_BEST_EXPOSURE_HPP 19 #define PIC_TONE_MAPPING_FIND_BEST_EXPOSURE_HPP 21 #include "../base.hpp" 22 #include "../image.hpp" 24 #include "../filtering/filter_luminance.hpp" 25 #include "../filtering/filter_simple_tmo.hpp" 26 #include "../histogram.hpp" 90 float fstop = -
log2f(lum_mean) - 1.0f;
Definition: filter_luminance.hpp:28
PIC_INLINE float findBestExposureMean(Image *img)
findBestExposureMean
Definition: find_best_exposure.hpp:69
int channels
Definition: image.hpp:80
The Histogram class is a class for creating, managing, loading, and saving histogram for an Image...
Definition: histogram.hpp:37
float * getMeanVal(BBox *box, float *ret)
getMeanVal computes the mean for the current Image.
Definition: histogram.hpp:31
PIC_INLINE float findBestExposureHistogram(Image *img)
findBestExposureHistogram computes the best exposure value for an image, img,
Definition: find_best_exposure.hpp:35
static Image * execute(Image *imgIn, Image *imgOut, LUMINANCE_TYPE type=LT_CIE_LUMINANCE)
execute
Definition: filter_luminance.hpp:166
#define PIC_INLINE
Definition: base.hpp:33
PIC_INLINE float log2f(float x)
log2f logarithm in base 2 for floating point
Definition: math.hpp:375
The Image class stores an image as buffer of float.
Definition: image.hpp:60
float getBestExposure(int nBits, float overlap=0.5f)
getBestExposure computes the best interval center.
Definition: histogram.hpp:669
Definition: bilateral_separation.hpp:25
bool isValid()
isValid checks if the current image is valid, which means if they have an allocated buffer or not...