Interface GammaMapping

All Known Implementing Classes:
ModifiedGammaMapping, SimpleGammaMapping

public interface GammaMapping
Interface to be implemented by gamma correction classes. All in/out component values are assumed to be in [0,1]. Implementing classes must at least define a double version of the required methods but are free to override the associated float versions.
Version:
2022/11/16
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    applyFwd(double a)
    Forward Gamma mapping (from linear to non-linear component values).
    default float
    applyFwd(float a)
    Float version of applyFwd(double)
    double
    applyInv(double b)
    Inverse Gamma mapping (from non-linear to linear component values).
    default float
    applyInv(float b)
    Float version of applyInv(double)
  • Method Details

    • applyFwd

      double applyFwd(double a)
      Forward Gamma mapping (from linear to non-linear component values).
      Parameters:
      a - linear component value in [0,1]
      Returns:
      the gamma-corrected (non-linear) component value
    • applyFwd

      default float applyFwd(float a)
      Float version of applyFwd(double)
      Parameters:
      a - linear component value in [0,1]
      Returns:
      the gamma-corrected (non-linear) component value
    • applyInv

      double applyInv(double b)
      Inverse Gamma mapping (from non-linear to linear component values).
      Parameters:
      b - non-linear (Gamma-corrected) component value in [0,1]
      Returns:
      the linear component value
    • applyInv

      default float applyInv(float b)
      Float version of applyInv(double)
      Parameters:
      b - non-linear (Gamma-corrected) component value in [0,1]
      Returns:
      the linear component value