Examples of push()


Examples of jjil.algorithm.GrayConnComp.push()

                jjil.core.Gray8Image imMask = null;
                jjil.core.Image image = dh.getFront();
                if (image instanceof jjil.core.Gray8Image) {
                   imMask = (Gray8Image) image;
                   GrayConnComp gcc = new GrayConnComp();
                   gcc.push(imMask);
                   if (gcc.getComponents()> 0) {
                       // found a face
                       Rect r = gcc.getComponent(0);
                       // calculate center of face in mask coordinates
                       int x = r.getLeft() + r.getWidth() / 2;

Examples of jjil.algorithm.GrayShrink.push()

                    imMask = (Gray8Image) r2g.getFront();
                }
                if (imMask != null) {
                    // shrink the mask to fit the display
                    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

Examples of jjil.algorithm.LinefitHough.push()

        if (v.size() < 5) {
            return false;
        }
        LinefitHough fit =
                new LinefitHough(0, this.imageEdge.getWidth(), -76, 76, 100);
        fit.push(v);
        if (fit.getCount() < 5) {
            return false;
        }
        this.cYLeft = fit.getY();
        this.wSlopeLeft = fit.getSlope();

Examples of jjil.algorithm.RgbAvg2Gray.push()

                            new jjil.algorithm.Gray322Gray8();
                    g322g8.push(image);
                    imMask = (Gray8Image) g322g8.getFront();
                } else if (image instanceof jjil.core.RgbImage) {
                    RgbAvg2Gray r2g = new RgbAvg2Gray();
                    r2g.push(image);
                    imMask = (Gray8Image) r2g.getFront();
                }
                if (imMask != null) {
                    // shrink the mask to fit the display
                    GrayShrink gs = new GrayShrink(nTargetWidth, nTargetHeight);

Examples of jjil.algorithm.RgbAvgGray.push()

    public void push(final RgbImage rgb) {
      if (mHcc != null) {
        mVecRects.clear();
          RgbAvgGray rg = new RgbAvgGray();
          try {
            rg.push(rgb);
            Gray8Image gray = (Gray8Image) rg.getFront();
            Gray8Crop crop = new Gray8Crop(0, 0, mHcc.getWidth(), mHcc.getHeight());
            int nHorizSkip = Math.max(rgb.getWidth()/16, mHcc.getWidth() / 10);
            int nVertSkip = Math.max(rgb.getHeight()/16, mHcc.getHeight() / 10);
            for (int i=0;

Examples of jjil.algorithm.RgbShrink.push()

            int nTargetWidth = Math.min(imInput.getWidth(),g.getClipWidth());
            int nTargetHeight = Math.min(imInput.getHeight(),g.getClipHeight());
            // convert the image to gray and then
            // warp the image to the clipping size
            RgbShrink rs = new RgbShrink(nTargetWidth, nTargetHeight);
            rs.push(this.imInput);
           
            if (this.dh != null && !this.dh.isEmpty()) {
                jjil.core.Gray8Image imMask = null;
                jjil.core.Image image = dh.getFront();
                if (image instanceof jjil.core.Gray8Image) {

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) {

Examples of jodd.json.Path.push()

    for (Map.Entry<?, ?> entry : map.entrySet()) {
      final Object key = entry.getKey();
      final Object value = entry.getValue();

      if (key != null) {
        currentPath.push(key.toString());
      } else {
        currentPath.push(StringPool.NULL);
      }

      // check if we should include the field

Examples of js.lang.NativeArray.push()

            public int act() {
                NativeArray<String> array = new NativeArray();
                assert array.length() == 0;

                array.push("1");
                assert array.length() == 1;

                return array.length();
            }
        });

Examples of kilim.analysis.Frame.push()

        }
    }

    public void testStack() {
        Frame f = new Frame(1, 4);
        f.push(Value.make(0, D_LONG));
        f.push(Value.make(0, D_DOUBLE));
        f.push(Value.make(0, D_ARRAY_BOOLEAN));
        f.push(Value.make(0, D_RETURN_ADDRESS));
        f.pop();
        f.pop();
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.