#include <film.h>
Public Member Functions | |
Histogram () | |
~Histogram () | |
void | Calculate (vector< RGBColor > &pixels, unsigned int width, unsigned int height) |
void | MakeImage (unsigned char *outPixels, unsigned int width, unsigned int height, int options) |
Private Member Functions | |
void | CheckBucketNr () |
Private Attributes | |
int | m_bucketNr |
int | m_newBucketNr |
float * | m_buckets |
int | m_zones [11] |
float | m_lowRange |
float | m_highRange |
float | m_bucketSize |
float | m_displayGamma |
boost::mutex | m_mutex |
Definition at line 359 of file film.h.
lux::Histogram::Histogram | ( | ) |
Definition at line 497 of file film.cpp.
References CheckBucketNr(), cimg_library::log(), m_bucketNr, m_buckets, m_displayGamma, m_highRange, m_lowRange, m_newBucketNr, and cimg_library::pow().
void lux::Histogram::Calculate | ( | vector< RGBColor > & | pixels, | |
unsigned int | width, | |||
unsigned int | height | |||
) |
Definition at line 540 of file film.cpp.
References CheckBucketNr(), Clamp(), cimg_library::log(), m_bucketNr, m_buckets, m_bucketSize, m_lowRange, and m_mutex.
void lux::Histogram::CheckBucketNr | ( | ) | [private] |
Definition at line 517 of file film.cpp.
References Clamp(), cimg_library::log(), m_bucketNr, m_buckets, m_bucketSize, m_displayGamma, m_highRange, m_lowRange, m_newBucketNr, m_zones, and cimg_library::pow().
Referenced by Calculate(), and Histogram().
void lux::Histogram::MakeImage | ( | unsigned char * | outPixels, | |
unsigned int | width, | |||
unsigned int | height, | |||
int | options | |||
) |
Definition at line 575 of file film.cpp.
References cimg_library::channel(), Clamp(), GETMAX, cimg_library::log(), LUX_HISTOGRAM_BLUE, LUX_HISTOGRAM_GREEN, LUX_HISTOGRAM_LOG, LUX_HISTOGRAM_RED, LUX_HISTOGRAM_RGB, LUX_HISTOGRAM_RGB_ADD, LUX_HISTOGRAM_VALUE, m_bucketNr, m_buckets, m_bucketSize, m_lowRange, m_mutex, m_newBucketNr, m_zones, cimg_library::cimg::max(), and PIXELIDX.
int lux::Histogram::m_bucketNr [private] |
Definition at line 367 of file film.h.
Referenced by Calculate(), CheckBucketNr(), Histogram(), and MakeImage().
float* lux::Histogram::m_buckets [private] |
Definition at line 368 of file film.h.
Referenced by Calculate(), CheckBucketNr(), Histogram(), MakeImage(), and ~Histogram().
float lux::Histogram::m_bucketSize [private] |
Definition at line 370 of file film.h.
Referenced by Calculate(), CheckBucketNr(), and MakeImage().
float lux::Histogram::m_displayGamma [private] |
Definition at line 371 of file film.h.
Referenced by CheckBucketNr(), and Histogram().
float lux::Histogram::m_highRange [private] |
Definition at line 370 of file film.h.
Referenced by CheckBucketNr(), and Histogram().
float lux::Histogram::m_lowRange [private] |
Definition at line 370 of file film.h.
Referenced by Calculate(), CheckBucketNr(), Histogram(), and MakeImage().
boost::mutex lux::Histogram::m_mutex [private] |
Definition at line 372 of file film.h.
Referenced by Calculate(), and MakeImage().
int lux::Histogram::m_newBucketNr [private] |
Definition at line 367 of file film.h.
Referenced by CheckBucketNr(), Histogram(), and MakeImage().
int lux::Histogram::m_zones[11] [private] |
Definition at line 369 of file film.h.
Referenced by CheckBucketNr(), and MakeImage().