Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering SciPy

You're reading from  Mastering SciPy

Product type Book
Published in Nov 2015
Publisher
ISBN-13 9781783984749
Pages 404 pages
Edition 1st Edition
Languages
Authors (2):
Francisco Javier Blanco-Silva Francisco Javier Blanco-Silva
Profile icon Francisco Javier Blanco-Silva
Francisco Javier B Silva Francisco Javier B Silva
View More author details

High-level operations on digital images


Before addressing the challenges of image processing and compression, it pays off to examine the sequence of basic operations that we perform on images. These operations are the building blocks of the algorithms we are to explore. By themselves, they beautifully illustrate the basic principle of mathematical imaging. An image is represented as a mathematical object and, as such, basic operations on the corresponding object can be translated to either physical operations or queries on the corresponding image.

Object measurements

In the setting of binary images, we could regard an image as a set of objects or blobs (in white) on an empty region of the plane (the background, in black). It is then possible to perform different measures on each of the objects represented:

In [1]: import numpy as np, matplotlib.pyplot as plt; \
   ...: from skimage.data import hubble_deep_field
In [2]: image = (hubble_deep_field()[:,:,0] > 120)

Tip

Hubble eXtreme Deep...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}