Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::JRToneMapping Class Reference

Maps HDR values to LDR. More...

#include <JRToneMapping.h>

Inheritance diagram for ph::JRToneMapping:
ph::FrameOperator

Public Types

template<typename T >
using TAABB2D = math::TAABB2D<T>
 

Public Member Functions

 JRToneMapping ()
 
void operate (const HdrRgbFrame &srcFrame, HdrRgbFrame *out_dstFrame) override
 
void operateLocal (HdrRgbFrame &frame, const TAABB2D< uint32 > &region) const
 
void setExposure (real exposure)
 
- Public Member Functions inherited from ph::FrameOperator
virtual ~FrameOperator ()=default
 

Detailed Description

Maps HDR values to LDR.

Uses an optimized formula proposed by Jim Hejl and Richard Burgess-Dawson in their GDC talk. This operator does not need gamma correction afterwards.

Reference: http://filmicworlds.com/blog/filmic-tonemapping-operators/

Member Typedef Documentation

◆ TAABB2D

template<typename T >
using ph::JRToneMapping::TAABB2D = math::TAABB2D<T>

Constructor & Destructor Documentation

◆ JRToneMapping()

ph::JRToneMapping::JRToneMapping ( )

Member Function Documentation

◆ operate()

void ph::JRToneMapping::operate ( const HdrRgbFrame & srcFrame,
HdrRgbFrame * out_dstFrame )
overridevirtual

Implements ph::FrameOperator.

◆ operateLocal()

void ph::JRToneMapping::operateLocal ( HdrRgbFrame & frame,
const TAABB2D< uint32 > & region ) const

◆ setExposure()

void ph::JRToneMapping::setExposure ( real exposure)

The documentation for this class was generated from the following files: