Package jjil.core

Examples of jjil.core.Sequence.push()


    seq.add(new RgbSubSample(nReducedWidth, nReducedHeight));
    seq.add(new RgbAvgGray());
    seq.add(new Gray8HistEq());
    seq.add(new Gray8HorizVertContrast(5, 2, -8, 3));
    seq.add(new Gray16Threshold(20));
    seq.push(rgb);
    Gray8ConnComp gcc = new Gray8ConnComp();
    Image imThresh = seq.getFront();
    Gray8Rgb g2r = new Gray8Rgb();
    g2r.push(imThresh);
    if (DetectBarcode.bDebug) {
View Full Code Here


        int dLeft = Math.max(0, dTopLeftX - cWidth / 12);
        int cWidthExp = Math.min(image.getWidth() - dLeft, cWidth * 7 / 6);
        seq.add(new Gray8Crop(dLeft, dTopLeftY, cWidthExp, cHeight));
        /* Apply the pipeline to get the cropped image.
         */
        seq.push(image);
        Image imageResult = seq.getFront();
        if (!(imageResult instanceof Gray8Image)) {
            throw new jjil.core.Error(
            jjil.core.Error.PACKAGE.ALGORITHM,
            jjil.algorithm.ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
View Full Code Here

        // cTotalWidth must become cTargetWidth * cTotalWidth / cInputWidth
        Gray8RectStretch stretch = new Gray8RectStretch(
                cTargetWidth * cTotalWidth / cInputWidth, cReducedHeight);
        seq.add(stretch);
        seq.add(new Gray8HistEq());
        seq.push(imageInput);
        return seq.getFront();
    }
   
    private boolean findBarcodeEdges() throws jjil.core.Error
    {
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.