⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lookuptablefp.java

📁 jpeg2000编解码
💻 JAVA
字号:
/***************************************************************************** * * $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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -