BufferedImage equalizeimage= new BufferedImage(source.getWidth(), source.getHeight(), source.getType());

int red;
int blue;
int green;
int newRGB = 0;


//to compute the...