code: public void refineAll() {
  		List<DetectPolygonFromContour.Info> detections = detector.getFound().toList();
  
  		for (int i = 0; i < detections.size(); i++) {
  			refine(detections.get(i));
  		}
  	}
docs: Refines all the detected polygons and places them into the provided list. Polygons which fail the refinement
  step are not added.