Transforming Image Colours

  • Alan Parkin


Given any stored digital image, we can transform the pixel colours in various ways, leaving the pixel locations unchanged. Colour diversity can be reduced by paletting to a sparser colour space. A general colour shift changes the colours of all the pixels in an image, by increasing or decreasing intensities across one, two or all three of the fundamental red green and blue variables. A specific colour substitution changes just the pixels of a specified colour to another colour. Scripts and examples are shown.


  1. 1.
  2. 2.
    Twyman M (1970) Printing 1790–1970. Eyre and Spottiswoode, LondonGoogle Scholar
  3. 3.
    Ulichney R (1987) Digital halftoning. MIT Press, CambridgeGoogle Scholar
  4. 4.
    Parkin A (2016) Digital imaging primer. Springer, HeidelbergGoogle Scholar
  5. 5.

Copyright information

© Springer International Publishing AG, part of Springer Nature 2018

Authors and Affiliations

  1. 1.LondonUK

Personalised recommendations