Examples of RgbSelectGray


Examples of jjil.algorithm.RgbSelectGray

    private Gray8AffineWarp grayWarp;
    private RgbSelectGray selectRed, selectGreen, selectBlue;
   
    public RgbAffineWarp(double[][] warp) throws Error {
        this.grayWarp = new Gray8AffineWarp(warp);
        this.selectRed = new RgbSelectGray(RgbSelectGray.RED);
        this.selectGreen = new RgbSelectGray(RgbSelectGray.GREEN);
        this.selectBlue = new RgbSelectGray(RgbSelectGray.BLUE);
    }
View Full Code Here

Examples of jjil.algorithm.RgbSelectGray

        /* First convert the color image to black and white by selecting the
         * green channel. We use the green channel because it is the highest
         * resolution channel on the CCDs used in cellphones.
         */
        if (image instanceof RgbImage) {
            seq.add(new RgbSelectGray(RgbSelectGray.GREEN));
        }
        /* Now crop the gray image.
         */
        int dLeft = Math.max(0, dTopLeftX - cWidth / 12);
        int cWidthExp = Math.min(image.getWidth() - dLeft, cWidth * 7 / 6);
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.