summaryrefslogtreecommitdiff
path: root/src/modified_gamma_transfer_function.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modified_gamma_transfer_function.h')
-rw-r--r--src/modified_gamma_transfer_function.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modified_gamma_transfer_function.h b/src/modified_gamma_transfer_function.h
index e8875d4b..c200743a 100644
--- a/src/modified_gamma_transfer_function.h
+++ b/src/modified_gamma_transfer_function.h
@@ -25,10 +25,15 @@
namespace dcp {
-/** A transfer function which for an input x gives an output y where
+/** A transfer function which for an input x gives a linear output y where
*
* y = x / B for x <= threshold
* y = ((x + A) / (1 + A))^power for x > threshold
+ *
+ * The reverse transform is
+ *
+ * x = y * B for y <= threshold / B
+ * x = (1 + A) * y ^ (1 / power) - A for y > threshold / B
*/
class ModifiedGammaTransferFunction : public TransferFunction
{