Package jjil.core

Examples of jjil.core.Gray8MaskedImage


                            imageInput.toString(),
                            null,
                            null);
        }
        Gray8Image grayInput = (Gray8Image) imageInput;
        Gray8MaskedImage grayOutput = new Gray8MaskedImage(grayInput);
        buildVector(grayInput.getWidth(), grayInput.getHeight());
        for (int i=0; i<grayInput.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++) {
                        grayOutput.setMask(i, k);
                    }
                }
            }
        }
        super.setOutput(grayOutput);
View Full Code Here


            // scale the mask to the new size
            Gray8RectStretch grs = new Gray8RectStretch(nTargetWidth, nTargetHeight);
            grs.push(imMask);
            imMask = (Gray8Image) grs.getFront();
            // combine the image and mask to make a masked image
            Gray8MaskedImage gmi = new Gray8MaskedImage(imShrunk, imMask);
            // pass the masked image to a subimage generator
            MaskedGray8SubImgGen mgsi = new MaskedGray8SubImgGen(
                    this.hcc.getWidth(),
                    this.hcc.getHeight(),
                    Math.max(1, gmi.getWidth() / 30),
                    Math.max(1, gmi.getHeight() / 30));
            mgsi.push(gmi);
            // now run Haar detection on each scaled image
            int nxLastFound = -hcc.getWidth();
            int nyLastFound = -hcc.getHeight();
            while (!mgsi.isEmpty()) {
View Full Code Here

TOP

Related Classes of jjil.core.Gray8MaskedImage

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.