Examples of push()


Examples of java.util.Stack.push()

        if (popEle.equals(lastTrack))  continue;
        else
        {
          currEle = popEle;
          found.push(currEle);
          track.push(lastTrack);
        }
      }
      // 2 nd Step
      HashMap currChild = (HashMap)get(currEle);

Examples of jjil.algorithm.ApplyMaskRgb.push()

                    GrayShrink gs = new GrayShrink(nTargetWidth, nTargetHeight);
                    gs.push(imMask);
                    imMask = (Gray8Image) gs.getFront();
                    // combine the gray image and the mask to make a displayable image
                    ApplyMaskRgb am = new ApplyMaskRgb();
                    RgbImage rgb = am.push((RgbImage)rs.getFront(), imMask);
                    g.setColor(0x0000FF00); // green
                    g.fillRect(
                            g.getClipX(),
                            g.getClipY(),
                            g.getClipWidth(),

Examples of jjil.algorithm.Gray8CannyHoriz.push()

         */
        int cCannyWidth = cWidth / 6;
        Gray8CannyHoriz canny = new Gray8CannyHoriz(cCannyWidth);
        /* Now apply the edge detection to the cropped mage
         */
        canny.push(imageCropped.clone());
        /* And obtain the result
         */
        imageResult = canny.getFront();
        if (!(imageResult instanceof Gray8Image)) {
            throw new jjil.core.Error(

Examples of jjil.algorithm.Gray8ConnComp.push()

    g2r.push(imThresh);
    if (DetectBarcode.bDebug) {
      Debug debug = new Debug();
      debug.toFile((RgbImage)g2r.getFront(), "test.jpg");
    }
    gcc.push(imThresh);
    if (gcc.getComponentCount() == 0) {
      return false;
    }
    // get component which is largest than the minimum size and
    // closest to a 4/3 ratio of width to height

Examples of jjil.algorithm.Gray8Crop.push()

                        Gray8Crop gcc = new Gray8Crop(
                                i,
                                j,
                                this.hcc.getWidth(),
                                this.hcc.getHeight());
                        gcc.push(imShrunk);
                        // see if there's a face there
                        if (hcc.eval(gcc.getFront())) {
                            // there is, add scaled rectangle to rectangle list
                            Rectangle r = new Rectangle(
                                    nXPos,

Examples of jjil.algorithm.Gray8RectStretch.push()

            gr.push(imMask);
            imMask = (Gray8Image) gr.getFront();
        }
        // Stretch imMask to original image size; this is the result
        Gray8RectStretch grs = new Gray8RectStretch(image.getWidth(), image.getHeight());
        grs.push(imMask);
        super.setOutput(grs.getFront());
    }
       
    /**
     * Get the rectangles where the detect returned true

Examples of jjil.algorithm.Gray8Rgb.push()

     */
    private boolean estimateBarcodes(Gray8Image image) throws jjil.core.Error
    {
      {
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(image);
        Debug debug = new Debug();
        debug.toFile((RgbImage) g2r.getFront(), "barcode.png"); //$NON-NLS-1$
      }
        this.chLeft = new CodeHash();
        this.chRight = new CodeHash();

Examples of jjil.algorithm.Gray8Shrink.push()

            int nTargetWidth = (int) (imGray.getWidth() / fScale);
            int nTargetHeight = (int) (imGray.getHeight() / fScale);
            int nStepHoriz = Math.max(1, nTargetWidth / this.nStep);
            int nStepVert = Math.max(1, nTargetHeight / this.nStep);
            Gray8Shrink gs = new Gray8Shrink(nTargetWidth, nTargetHeight);
            gs.push(imGray);
            Gray8Image imShrunk = (Gray8Image) gs.getFront();
            for (int i=0; i<imShrunk.getWidth()-this.hcc.getWidth(); i+=nStepHoriz) {
                // compute left coordinate in original image
                int nXPos = (i * imGray.getWidth()) / imShrunk.getWidth();
                for (int j=0; j<imShrunk.getHeight()-this.hcc.getHeight(); j+=nStepVert) {

Examples of jjil.algorithm.Gray8TrapWarp.push()

        Gray8TrapWarp warp = new Gray8TrapWarp(0this.imageCropped.getHeight(),
                cTl,
                cTr,
                cBl,
                cBr);
        warp.push(this.imageCropped);
        Image imageResult = warp.getFront();
        if (!(imageResult instanceof Gray8Image)) {
            throw new jjil.core.Error(
            jjil.core.Error.PACKAGE.ALGORITHM,
            jjil.algorithm.ErrorCodes.IMAGE_NOT_GRAY8IMAGE,

Examples of jjil.algorithm.Gray8ZeroCrossingHoriz.push()

    }
   
    private boolean findBarcodeEdges() throws jjil.core.Error
    {
        Gray8ZeroCrossingHoriz zeroesFind = new Gray8ZeroCrossingHoriz(8);
        int[][] wZeroes = zeroesFind.push(this.imageEdge);
        Vector v = getPointsFromZeroes(wZeroes, true);
        if (v.size() < 5) {
            return false;
        }
        LinefitHough fit =
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.