Negative transformation

Image negative is produced by subtracting each pixel from the maximum intensity value.