Adjustments and filters
The previous example which adjusts the brightness of a pixmap leads neatly into thinking
about more general ways that we can change the global properties of an image. Helpfully
many kinds of adjustment, for contrast, brightness, sharpness etc., can be made directly in
PIL. This is more convenient than doing things in numeric Python arrays. Nonetheless, we
will go on to show some of the equivalent operations with arrays, because this gives more
control and teaches something about how the adjustments work at a low level.
Do'stlaringiz bilan baham: |