Package collage.utils

Examples of collage.utils.FeatureCollector.gather()


    xRemaining = img.getWidth()-1;
    for (int x = 0; x < img.getWidth(); x += wStep) {
      yRemaining = img.getHeight()-1;
      for (int y = 0; y < img.getHeight(); y += hStep) {
        rect = new Rectangle(x,y,Math.min(wStep, xRemaining),Math.min(hStep, yRemaining))
        fs = fc.gather(img.getSubimage(x, y, rect.width, rect.height), "", cellDim);
        grid.add(new Cell(rect,fs));
        yRemaining -= hStep;
      }
      xRemaining -= wStep;
    }
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.