Examples of RgbAvgGray


Examples of jjil.algorithm.RgbAvgGray

    final int nReducedHeight = 300;
    final int nReducedWidth = 400;
    // build pipeline
    Sequence seq = new Sequence();
    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();
View Full Code Here

Examples of jjil.algorithm.RgbAvgGray

    }
       
    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;
              i<=gray.getHeight()-mHcc.getHeight() && mVecRects.size() == 0;
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.