private List<Cell> getCells(BufferedImage img, List<Rectangle> rectangles,
Dimension cellDim) {
List<Cell> cells = new ArrayList<Cell>();
FeatureCollector fc = new FeatureCollector();
FeatureSet fs;
for (Rectangle rect : rectangles) {
//System.out.format("%d %d %d %d\n", rect.x, rect.y, rect.width, rect.height);
fs = fc.gather(img.getSubimage(rect.x, rect.y, rect.width, rect.height),
"",cellDim);