The ReinhardGlobalOperator class is an implementation of Erik Reinhard's global tone mapping operator. More...
Public Slots | |
void | updateKeyValue (int value) |
void | updateBurnOut (bool enabled) |
void | updateLumWhite () |
void | toneMap () |
Public Member Functions | |
virtual void | setupUi (QWidget *widget) |
virtual const HdrImage * | getToneMappedImage () const |
virtual void | setImage (const HdrImage *image) |
virtual QString | name () const |
Private Attributes | |
Ui::ReinhardGlobalOperator | ui |
const HdrImage * | inputImage |
HdrImage * | outputImage |
double | avLum |
float | keyValue |
bool | burnOut |
float | lumWhite2 |
QString | msg |
The ReinhardGlobalOperator class is an implementation of Erik Reinhard's global tone mapping operator.
This class implements ToneMappingOperator interface.
Definition at line 27 of file ReinhardGlobalOperator.h.
const HdrImage * ReinhardGlobalOperator::getToneMappedImage | ( | ) | const [virtual] |
Returns a constant pointer to the tone mapped image.
Implements ToneMappingOperator.
Definition at line 68 of file ReinhardGlobalOperator.cpp.
QString ReinhardGlobalOperator::name | ( | ) | const [virtual] |
Returns the operator name: Reinhard Global Operator.
Implements ToneMappingOperator.
Definition at line 63 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::setImage | ( | const HdrImage * | image ) | [virtual] |
Sets the image to be tone mapped.
This function also computes average luminance and then calls toneMap().
Implements ToneMappingOperator.
Definition at line 78 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::setupUi | ( | QWidget * | widget ) | [virtual] |
Sets up the user interface inside widget.
Implements ToneMappingOperator.
Definition at line 49 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::toneMap | ( | ) | [slot] |
Tone maps the image.
This function emit imageUpdated() when tone mapping is finished.
Definition at line 119 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::updateBurnOut | ( | bool | enabled ) | [slot] |
Enable or disable burn out.
This function is typically called when the burn out checkbox is clicked. It also calls updateLumWhite().
Definition at line 173 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::updateKeyValue | ( | int | value ) | [slot] |
Reads the key value from the user interface.
This function is typically called when the key value slider is moved.
Definition at line 161 of file ReinhardGlobalOperator.cpp.
void ReinhardGlobalOperator::updateLumWhite | ( | ) | [slot] |
Reads the white value from the user interface.
This function is typically called when the spin box value is modified. It also calls toneMap().
Definition at line 185 of file ReinhardGlobalOperator.cpp.