Computer Impage Manipulation with Python

With Python we can open am image file, and log at the data and transform the image.

Step 1

Open the file and look at the data: ImageFunData

Step 2

Rotate the image using the rotate command, then say it to a file: ImageFunRotate

Try different rotations and images.

Step 3

Modify the images color. Here I subtract 100 from each color: ImageFunDarken

Step 4

Now try some other actions:

  • Swap around color channels
  • Invert by subtracting each color value from 255
  • What do you need to do to lighten the image?
  • What would it take to increase the images contrast?
Topic revision: r1 - 2019-02-19 - JimSkon
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback