New eBook on Easy Image Processing in Python

Image Cover

iBook Edition

Kindle Edition

Download Demo Programs

This book presents an introduction to the concepts and techniques of digital image processing, using the Python programming language and the Pillow toolkit. The reader will learn some algorithms that perform simple image transformations, such as converting color to grayscale, cropping, reducing image size, and edge detection. Code examples are provided and the book concludes with a set of challenging exercises. The book assumes a working knowledge of Python; an appendix provides a primer on Python for the absolute beginner.


Brief Table of Contents

Introduction: What Is Image Processing?
A Quick Preview of Image Processing in Python with Pillow
Analog and Digital Information
Sampling and Digitizing Images
Colors and the RGB System
The Economy of Grayscale
Image File Formats
The Properties of Pillow Images
Loading Images from a File and Creating New Images
Basic Image Methods
Functional Composition with Functions and Methods
Modifying Individual Pixels
A Loop Pattern for Traversing a Grid
A Word on Tuples
Converting an Image to Black and White
Converting an Image to Grayscale
Cropping an Image
Blurring an Image
Edge Detection
Reducing the Image Size
Drawing Geometric Shapes on an Image
Drawing Text on an Image
Conclusion
Programming Exercises
Appendix: Basic Python Programming