Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

๐Ÿ“š The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
Kernel: Python 3

Parsing pixels with scikit-image

Presented by Stรฉfan van der Walt [email protected]


This tutorial can be found online at https://github.com/scikit-image/skimage-tutorials

Please launch the IPython notebook from the root of the repository.


From telescopes to satellite cameras to electron microscopes, scientists are producing more images than they can manually inspect. This tutorial will introduce automated image analysis using the "images as numpy arrays" abstraction, run through various fundamental image analysis operations (filters, morphology, segmentation), and finally give you a chance to try your hand at some real-world examples from StackOverflow.

Image analysis is central to a boggling number of scientific endeavors. Google needs it for their self-driving cars and to match satellite imagery and mapping data. Neuroscientists need it to understand the brain. NASA needs it to map asteroids and save the human race. It is, however, a relatively underdeveloped area of scientific computing.

The goal is for attendees to leave the tutorial confident of their ability to extract information from images in Python.

Prerequisites

All of the below packages, including the non-Python ones, can be found in the Anaconda Python distribution, which can be obtained for free. Alternatively, under OSX, a pip install should work.

Required packages

  • scikit-image (0.10 or higher)

Required for scikit-image:

  • Python (>=2.5 required, 2.7 recommended)

  • numpy (>=1.6 required, 1.7 recommended)

  • scipy (>=0.10 required, 0.13 recommended)

Required for image reading and viewing:

  • matplotlib (>=1.0 required, 1.2 recommended)

Example images

scikit-image ships with some example images in skimage.data. For this tutorial, we will additionally make use of images included in the skimage-tutorials/images folder.

Introduction

Sections

For convenience, we have divided this tutorial into several chapters, linked below.

I am going to move through the material fairly quickly so that you can start playing around with code as soon as possible. But that means you have to stop me if something is not clear! My goal is for you to come away confident that you can manipulate images in Python.

More lectures here and here.

Further questions?

Feel free to grab hold of me tomorrow during the conference, or at the PyData Ask Us Anything!

Or meet the scikit-image team on <img src="https://badges.gitter.im/Join%20Chat.svg"/ style="display: inline">

Other ways to stay in touch

---
## The relationship of skimage with the Scientific Python eco-system - numpy (with skimage as the image processing layer) - scipy (in combination with ndimage) - sklearn (machine learning + feature extraction) - opencv for speed (e.g. in a factory setting) - novice (for teaching)
---
%reload_ext load_style %load_style ../themes/tutorial.css