Java Gamma gammaFwd(double lc)

Here you can find the source of gammaFwd(double lc)

Description

gamma Fwd

License

Open Source License

Declaration

public static double gammaFwd(double lc) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 This software is provided as a supplement to the authors' textbooks on digital
 image processing published by Springer-Verlag in various languages and editions.
 Permission to use and distribute this software is granted under the BSD 2-Clause 
 "Simplified" License (see http://opensource.org/licenses/BSD-2-Clause). 
 Copyright (c) 2006-2013 Wilhelm Burger, Mark J. Burge. 
 All rights reserved. Visit http://www.imagingbook.com for additional details.
 ******************************************************************************/

public class Main {
    public static double gammaFwd(double lc) { // input: linear component value
        return (lc > 0.0031308) ? (1.055 * Math.pow(lc, 1 / 2.4) - 0.055)
                : (lc * 12.92);/*from  www . ja v  a 2  s .c  om*/
    }
}

Related

  1. gamma(int rgb)
  2. gammaCdf(double a, double x)
  3. gammaCdf(double a, double x)
  4. gammaCorrection(final float gamma, final float x)
  5. gammaFunction(double in)
  6. gammaln(double x)
  7. gammaOfArgOn2Plus1(int d)
  8. gammaOfArgOn2Plus1IncludeDivisor(int d, double divisor)
  9. gammaPdf(double x, double a)