Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.LookupTableJAI



    /** Creates the lookup table and computes the inverse mapping. */
    private void createLUT(int ncubes) {
        if (colorMap == null) {
            colorMap = new LookupTableJAI(new byte[3][ncubes]);
        }

        byte[] rLUT = colorMap.getByteData(0);
        byte[] gLUT = colorMap.getByteData(1);
        byte[] bLUT = colorMap.getByteData(2);
View Full Code Here


            for(int i = 0; i < 256; i++) {
                b[i] = (byte)i;
            }
        }

        return new LookupTableJAI(data);
    }
View Full Code Here

                pb = (new ParameterBlock()).addSource(ri).add(matrix);
                ri = JAI.createRenderable("bandcombine", pb);
            }

            float contrast = paramBlock.getFloatParameter(4);
            LookupTableJAI lut = createContrastLUT(contrast, nBands);

            pb = (new ParameterBlock()).addSource(ri).add(lut);
            ri = JAI.createRenderable("lookup", pb);

            if(isPYCC) {
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.LookupTableJAI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.