code and data for 'Intermediate Image Analysis - Images as Signals' workshop
This workshop covers the application of conventional signal processing techniques to digital images. It is geared toward those with low-to-moderate programming experience, but beginners should be able to follow along with the provided tutorial code and examples. Students will learn how to apply Fourier transforms to their images and how to use them to perform common image analysis tasks.
Lesson material is found in the lessons/ folder.
References:
Sample accelerometer data contributed to Kaggle by Swayam Mittal (CC0): https://www.kaggle.com/swayammittal65/wearable-motion-sensors/
bear_kidney.png was derived from public data made available by the Korstanje Lab at the Jackson Laboratory. https://images.jax.org/webclient/?show=project-59 DNA Res. 2019 Feb 1;26(1):37-44. doi: 10.1093/dnares/dsy036.
This workshop assumes that you know the basics of dealing with images in Python (i.e., you are familiar with the material here). If you are not, please work through the prerequisite material prior to attending this workshop.
You will need to use three software tools in addition to Python for this workshop: git, conda, and jupyter.
git is only used in this workshop to copy the course notes and code to your local computer, although it is a very powerful tool for managing your projects!
conda is a tool used for two purposes: to create environments for your projects and to manage Python packages. It will be a very good idea to read up on conda before you begin this course, spefically how to use environments.
jupyter is a tool for developing your code in "notebooks" (file extension *.ipynb) in a web browser. This course is based around a series of such notebooks (you are looking at a notebook now!). The main utility of using notebooks for image analysis is that you can save all of your output on the same page as your code, which helps you, and your collaborators, to follow the steps of an analysis.
-
Clone the git repository to your computer.
git clone https://github.com/TheJacksonLaboratory/images-as-signals.git
Windows Users: You will first need to install git. Then you can use Git Bash to use the command shown above
As an alternative to using git, you can also download the repository as a zip file at https://github.com/TheJacksonLaboratory/images-as-signals/archive/master.zip.
-
Install Anaconda (or Miniconda)
- This gives you access to the
conda
Python package management system - Windows Users: You may want to opt for the full install of Anaconda. This will give you "Anaconda Prompt" which will make it easier for you to follow along here.
- This gives you access to the
-
Using conda in a terminal window (or Anaconda prompt in Windows), navigate to the root directory of this workshop (should be called
images-as-signals
and create a virtual environment from theenvironment.yml
file.conda env create -f environment.yml
-
Launch Jupyter from the Anaconda launcher or command line (
jupyter notebook
).