return new Color(new double[] { (1 - (r-g))/2, (1 - (((r+g)/2)-b))/2, 0.299*r+0.587*g+0.114*b});
return new Color((r + 2*(1-g) + b)/4, (r + (1-b))/2, (r+g+b)/3);
	public Color getColor(int x, int y) {		double[] rgb = image.getColor(x,y).getComponents();		double r = rgb[0], g = rgb[1], b = rgb[2];		return new Color(new double[] { (1 - (r-g))/2, (1 - (((r+g)/2)-b))/2,				0.299*r+0.587*g+0.114*b});	}