Here you can find the source of gammaFwd(double lc)
public static double gammaFwd(double lc)
//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*/ } }