Difference between revisions of "Image processing with Python and SciPy"

From AstroEd
Jump to navigation Jump to search
(Created page with "Given that NumPy provides multidimensional arrays, and that there is core support through the Python Imaging Library to display images and manipulate images in the Python envi...")
 
Line 2: Line 2:
  
  
== Python Imaging Library - PIL ==  
+
== Python Imaging Library - PIL ==
  
 +
Before we get into the broad area, there is a caveat for users of Python 3. The essential Python Imaging Library or PIL is not yet completely compatible with new version of Python.  Consequently the FITS tools we will need for astronomical image processing are also currently only supported in the mature versions of Python 2.  The comments that follow are based on Python 2.7.
 +
 +
 +
The current version of PyFITS is v3.1.1 (January 02 2013).
  
 
== Astronomical FITS files with PyFITS ==  
 
== Astronomical FITS files with PyFITS ==  

Revision as of 07:17, 26 February 2013

Given that NumPy provides multidimensional arrays, and that there is core support through the Python Imaging Library to display images and manipulate images in the Python environment, it's easy to take the next step and combine these for scientific image processing. As part of our short course on Python for Physics and Astronomy we begin by exploring how Python handle image input and output


Python Imaging Library - PIL

Before we get into the broad area, there is a caveat for users of Python 3. The essential Python Imaging Library or PIL is not yet completely compatible with new version of Python. Consequently the FITS tools we will need for astronomical image processing are also currently only supported in the mature versions of Python 2. The comments that follow are based on Python 2.7.


The current version of PyFITS is v3.1.1 (January 02 2013).

Astronomical FITS files with PyFITS

FITS headers

Processing and displaying images

SciPy and SciKit for image processing

Examples

Assignments