-
Book Overview & Buying
-
Table Of Contents
Hands-On Image Processing and Computer Vision with Python - Second Edition
By :
scikit-image is a collection of algorithms for image processing and computer vision that is built on top of NumPy, SciPy, and Matplotlib. It provides a variety of functions for image manipulation, filtering, and analysis. Here are some common image manipulation tasks that can be performed using scikit-image.
Image inversion means flipping the intensity values of each pixel. If an image has pixel intensities ranging from
(black) to
(white), the inversion formula is as follows:

Here,
is the number of different intensity values, as in these examples:
for an 8-bit grayscale image (pixel values in
)
for a floating-point image normalized to
Note
If the image pixel values are not already scaled appropriately, a normalization step (e.g., mapping to
or
) should be performed before applying the inversion formula to avoid incorrect results.
In general...
Change the font size
Change margin width
Change background colour