// setup filter parametrs
a.setColorRange(7f);
a.setSquareRange((short)20);
// process
a.doClustering();
// paint clusters on image
BufferedImage img = Tools.paintClusters(srcimg.getWidth(), srcimg.getHeight(), a.getClusters(), false);
// write results to file