private static Image drawBorder(Frontier frontier, Image image) {
		if (image.isRgb()) {
//			for (Point p : frontier.getInnerBorder()) {
//				image.setPixel(p.x, p.y, RED, 255);
//				image.setPixel(p.x, p.y, GREEN, 0);
//				image.setPixel(p.x, p.y, BLUE, 0);
//			}
			for (Point p : frontier.getOuterBorder()) {
				image.setPixel(p.x, p.y, RED, 0);
				image.setPixel(p.x, p.y, GREEN, 255);
				image.setPixel(p.x, p.y, BLUE, 0);
			}
		} else if (image.isHsv()) {
			for (Point p : frontier.getInnerBorder()) {
				image.setPixel(p.x, p.y, HUE, 35);
				image.setPixel(p.x, p.y, SATURATION, 1);
				image.setPixel(p.x, p.y, VALUE, 255);

			}
		}
		return image;
	}