lookuptablefp.java

来自「jpeg2000编解码」· Java 代码 · 共 75 行

JAVA
75 行
字号
/***************************************************************************** * * $Id: LookUpTableFP.java,v 1.1.1.1 2002/08/02 09:47:04 grosbois Exp $ * * Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650 * $Date $ *****************************************************************************/package icc.lut;import icc .tags.ICCCurveType;/** * Toplevel class for a float [] lut. *  * @version	1.0 * @author	Bruce A. Kern */public abstract class LookUpTableFP extends LookUpTable {             /** The lut values. */ public final float [] lut;    /**     * Factory method for getting a lut from a given curve.     *   @param curve  the data     *   @param dwNumInput the size of the lut      * @return the lookup table     */    public static LookUpTableFP createInstance (                 ICCCurveType curve,   // Pointer to the curve data                             int dwNumInput        // Number of input values in created LUT                ) {        if (curve.nEntries == 1) return new LookUpTableFPGamma  (curve, dwNumInput);        else                     return new LookUpTableFPInterp (curve, dwNumInput); }    /**      * Construct an empty lut      *   @param dwNumInput the size of the lut t lut.      *   @param dwMaxOutput max output value of the lut      */    protected LookUpTableFP (                 ICCCurveType curve,   // Pointer to the curve data                             int dwNumInput       // Number of input values in created LUT                 ) {         super (curve, dwNumInput);        lut = new float [dwNumInput]; }        /**     * lut accessor     *   @param index of the element     * @return the lut [index]     */    public final float elementAt  ( int index ) {        return lut [index]; }        /* end class LookUpTableFP */ }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?