Image Processing in Python
โ Scribed by Martin McBride
- Publisher
- leanpub.com
- Year
- 2021
- Tongue
- English
- Leaves
- 154
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Table of Contents
Table of Contents
Preface
Who is this book for?
About the author
Keep in touch
Introduction
Versions
Example sources on github
I Bitmap images
Introduction to bitmap imaging
What is a bitmap image?
Spatial sampling
Colour representation
File formats
Vector images
Computer colour
Visible light
Frequency and wavelength
What is colour?
Non-spectral colours
How we see colour
The RGB colour model
Displaying colour
Representing RGB colours as a percentage
Floating point representation
Byte value representation
Colour resolution
Greyscale colour model
The CMYK colour model
The K component
HSL/HSB colour models
HSL variants
Perceptual colour models
CIE spaces
Colour management
Gamuts
Bitmap image data
Data layout
8-bit per channel images
24-bit RGB
32-bit CMYK
8-bit greyscale
32-bit RGBA
Bitmap data with fewer levels
8-bit RGB
16-bit RGB
Dithering
Bilevel images
Bitmap data with more levels
Palette based images
Images with more than 256 colours
Handling transparency
Alpha channel
Transparent palette entry
Transparent colour
Interlacing and alternate pixel ordering
Image file formats
Why are there so many formats?
Image data and metadata
Image compression
Lossless compression
Lossy compression
Some common file formats
PNG format
JPEG format
GIF format
BMP format
Animation
II Pillow library
Introduction to Pillow
Pillow and PIL
Installing Pillow
Main features of Pillow
Basic imaging
The Image class
Creating and displaying an image
Saving an image
Handling colours
Converting strings to colours
Creating images
Opening an image
Image processing
Rotating an image
Creating a thumbnail
Image modes
Image class
Example code
Creating images
Image.new
Image.open
copy
Other methods
Saving images
Image generators
Working with image bands
getbands
split
merge
getchannel
putalpha
ImageOps module
Image resizing functions
expand
crop
scale
pad
fit
Image transformation functions
flip
mirror
exif-transpose
Colour effects
grayscale
colorize
invert
posterize
solarize
Image adjustment
autocontrast
equalize
Deforming images
How deform works
getmesh
A wave transform
Other deformations
Image attributes and statistics
Attributes
File size
File name
File format
Mode and bands
Palette
Info
Animation
EXIF tags
Image statistics
Image histogram
Masking
Other Image statistics
ImageStat module
Enhancing and filtering images
ImageEnhance
Brightness
Contrast
Color
Sharpness
ImageFilter
Predefined filters
Parameterised filters
Blurring functions
Unsharp masking
Ranking and averaging filters
Defining your own filters
Image compositing
Simple blending
Image transparency
ImageChops blend function
ImageChops composite function
Blend modes
Addition
Subtraction
Lighter and darker
Multiply and screen
Other blend modes
Logical combinations
Drawing on images
Coordinate system
Drawing shapes
Drawing rectangles
Drawing other shapes
Points
Handling text
Drawing simple text
Font and text metrics
Anchoring
Drawing multiline text
Paths
Drawing a path
Transforming paths
Mapping points
Accessing pixel data
Processing an image
Creating an image
Performance
Integrating Pillow with other libraries
NumPy integration
Converting a Pillow image to Numpy
Image data in a NumPy array
Modifying the NumPy image
Converting a NumPy array to a Pillow image
III Reference
Pillow colour representation
Hexadecimal colour specifiers
RGB functions
HSL functions
HSV functions
Named colours
Example
Image modes
More books from this author
Numpy Recipes
Computer Graphics in Python with Pycairo
Functional Programming in Python
๐ SIMILAR VOLUMES
For decades, researchers have been developing algorithms to manipulate and analyze images. From this, a common set of image tools now appear in many high-level programming languages. Consequently, the amount of coding required by a user has significantly lessened over the years. While the libraries
Part I - Image Operators -- Operator Nomenclature -- Scripting in Python -- Digital Images -- Color -- Part II Image Space Manipulations -- Geometric Transformations -- Image Morphing -- Principle Component Analysis -- Eigenimages -- Part III Frequency Space Manipulations -- Image Frequencies -- Fil
One of the best things about OpenCV is that it comes with a lot of built-in primitives for image processing and computer vision operations. If you have to start from scratch and write something, you will need to define things like an image, a point, a rectangle, and so on. Almost every computer visi
<div> <p>Explore Keras, scikit-image, OpenCV, Matplotlib, and many other Python tools and frameworks to solve real-world image processing problems</p> <h3>Key Features</h3> <p>Discover solutions to complex image processing tasks using Python tools such as scikit-image and Keras</p> <p>Delve into