Examples of RgbImage


Examples of jjil.core.RgbImage

                  image.toString(),
                  null,
                  null);
        }
        Gray8Image gray = (Gray8Image) image;
        RgbImage rgb = new RgbImage(image.getWidth(), image.getHeight());
        byte[] grayData = gray.getData();
        int[] rgbData = rgb.getData();
        for (int i=0; i<gray.getWidth() * gray.getHeight(); i++) {
            /* Convert from signed byte value to unsigned byte for storage
             * in the RGB image.
             */
            int grayUnsigned = (grayData[i]) - Byte.MIN_VALUE;
View Full Code Here

Examples of jjil.core.RgbImage

       
        int cWidth  = imageInput.getWidth();
        int cHeight = imageInput.getHeight();
        int rgbInput[] = ((RgbImage)imageInput).getData();
       
        RgbImage imageResult = new RgbImage(cWidth, cHeight);
        int[] rgbOutput = imageResult.getData();
       
        for(int i=0;i<cHeight;i++) {
            /* declare and initialize integers which will hold the r, g, and b
             * pixel values. The variables are named and numbered as if
             * they were array indices for three different 3x3 arrays.
View Full Code Here

Examples of jjil.core.RgbImage

                            ErrorCodes.IMAGE_NOT_RGBIMAGE,
                            imageInput.toString(),
                            null,
                            null);
        }
        RgbImage rgbInput = (RgbImage) imageInput;
        RgbMaskedImage rgbOutput = new RgbMaskedImage(rgbInput);
        buildVector(rgbInput.getWidth(), rgbInput.getHeight());
        for (int i=0; i<rgbInput.getHeight(); i++) {
            if (this.rnX[i] != null) {
                for (int j=0; j<this.rnX[i].length; j+= 2) {
                    for (int k = this.rnX[i][j]; k<this.rnX[i][j+1]; k++) {
                        rgbOutput.setMask(i, k);
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.