private static ImageProcessor search(List<Integer> candidates, ImageProcessor strong, ImageProcessor med){
		ImageProcessor result = strong.duplicate();
		for(Integer pt : candidates){
			int x = pt / strong.getHeight();
			int y = pt % strong.getHeight();
			if(result.get(x,y) != 255){
				if(searchHelp(x, y, strong, med, new boolean[strong.getWidth()][strong.getHeight()])){
					result.set(x,y, 255);
				}
			} else {
				result.set(x,y,255);
			}
		}
		return result;
	}