Aggregator<Object,Integer> aggregator = new Numbers.Count<Object>();
Selector<Point2D> selector = TouchesPixel.make(dataset);
AffineTransform vt = Util.zoomFit(dataset.bounds(), width, height);
Aggregates<Integer> aggregates = r.aggregate(dataset, selector, aggregator, vt, width, height);
Map<String, Transfer<Integer,Integer>> allCarvers = new HashMap<String, Transfer<Integer,Integer>>() {{
put("incremental", new SeamCarving.CarveIncremental<>(new SeamCarving.LeftValue<Integer>(), Direction.V, 0,seams));
put("sweep", new SeamCarving.CarveSweep<>(new SeamCarving.LeftValue<Integer>(), Direction.V, 0, seams));