Package 

Class ToneMapper.Generic


  • 
    public class ToneMapper.Generic
    extends ToneMapper
                        

    Generic tone mapping operator that gives control over the tone mappingcurve. This operator can be used to control the aesthetics of the finalimage. This operator also allows to control the dynamic range of thescene referred values.The tone mapping curve is defined by 5 parameters:

    • contrast: controls the contrast of the curve
    • midGrayIn: sets the input middle gray
    • midGrayOut: sets the output middle gray
    • hdrMax: defines the maximum input value that will be mapped tooutput white
    • Constructor Summary

      Constructors 
      Constructor Description
      ToneMapper.Generic() Builds a new generic tone mapper parameterized to closely approximatethe ACESLegacy tone mapper.
      ToneMapper.Generic(float contrast, float midGrayIn, float midGrayOut, float hdrMax) Builds a new generic tone mapper.
    • Method Summary

      Modifier and Type Method Description
      float getContrast() Returns the contrast of the curve as a strictly positive value.
      void setContrast(float contrast) Sets the contrast of the curve, must be > 0.0, values in the range 0.5..2.0 are recommended.
      float getMidGrayIn() Returns the middle gray point for input values as a value between 0.0 and 1.0.
      void setMidGrayIn(float midGrayIn) Sets the input middle gray, between 0.0 and 1.0.
      float getMidGrayOut() Returns the middle gray point for output values as a value between 0.0 and 1.0.
      void setMidGrayOut(float midGrayOut) Sets the output middle gray, between 0.0 and 1.0.
      float getHdrMax() Returns the maximum input value that will map to output white, as a value >= 1.0.
      void setHdrMax(float hdrMax) Defines the maximum input value that will be mapped to output white.
      • Methods inherited from class com.google.android.filament.ToneMapper

        getNativeObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToneMapper.Generic

        ToneMapper.Generic()
        Builds a new generic tone mapper parameterized to closely approximatethe ACESLegacy tone mapper.
      • ToneMapper.Generic

        ToneMapper.Generic(float contrast, float midGrayIn, float midGrayOut, float hdrMax)
        Builds a new generic tone mapper.
        Parameters:
        contrast - : controls the contrast of the curve, must be > 0.0, valuesin the range 0.5..2.0 are recommended.
        midGrayIn - : sets the input middle gray, between 0.0 and 1.0.
        midGrayOut - : sets the output middle gray, between 0.0 and 1.0.
        hdrMax - : defines the maximum input value that will be mapped tooutput white.
    • Method Detail

      • getContrast

         float getContrast()

        Returns the contrast of the curve as a strictly positive value.

      • setContrast

         void setContrast(float contrast)

        Sets the contrast of the curve, must be > 0.0, values in the range 0.5..2.0 are recommended.

      • getMidGrayIn

         float getMidGrayIn()

        Returns the middle gray point for input values as a value between 0.0 and 1.0.

      • setMidGrayIn

         void setMidGrayIn(float midGrayIn)

        Sets the input middle gray, between 0.0 and 1.0.

      • getMidGrayOut

         float getMidGrayOut()

        Returns the middle gray point for output values as a value between 0.0 and 1.0.

      • setMidGrayOut

         void setMidGrayOut(float midGrayOut)

        Sets the output middle gray, between 0.0 and 1.0.

      • getHdrMax

         float getHdrMax()

        Returns the maximum input value that will map to output white, as a value >= 1.0.

      • setHdrMax

         void setHdrMax(float hdrMax)

        Defines the maximum input value that will be mapped to output white. Must be >= 1.0.