Exercises

General Information

The exercises are based on the lectures and take place in the same room after the lecture completes. Links to the exercises are provieded with the lecture slides in the weekly plan The exercises are designed to offer a tiered level of understanding based on the background of the student. Most exercises are prepared as python notebooks that guides you step by step through the exercises. New python commands will be introduced when needed and links to the manual pages will be provided. This is not a course on python programming, you will learn to use this powerful language for different image processing tasks throughout the course.

Alternatives to using python

The is also the possiblity to use an open-source tool called KNIME (www.knime.org), with example workflows here (https://www.knime.org/example-workflows). The basic exercises will require adding blocks in a workflow and adjusting parameters, while more advanced students will be able to write their own snippets, blocks or plugins to accomplish more complex tasks easily. The exercises from four years ago (available here are done entirely in ImageJ and Matlab for students who would prefer to stay in those environments (not recommended)

Install Python

If you use colab, kaggle or mybinder you won’t need python on your own machine but if you want to set it up in the same way the class has you can follow the instructions shown in the video here and below

  1. Install Anaconda Python https://www.anaconda.com/distribution/#download-section
  2. Download the course from github as a zip file
  3. Extract the zip file
  4. Open a terminal (or command prompt on windows)
  5. Go to the binder folder inside the course directory (something like: Downloads/Quantitative-Big-Imaging-2019-master/binder)
  6. Install the environment
  7. conda env create -f environment.yml
  8. Activate the environment conda activate qbi2019 or activate qbi2019
  9. Go up one directory to the root of the course cd ..
  10. Start python jupyter notebook

Install KNIME

Install Git and clone the lecturematerial

  1. Follow the instructions to install git.
  2. Clone the lecture repository.
  3. Go to the github page for QBI lecture material
  4. Click the clone button clone button
  5. Copy the path clone dialog
  6. Windows: open ‘git bash’, MacOS/Linux: open a terminal.
  7. Go to the folder where you want to place the lecture material.
  8. Type: git clone <paste the repository path here>, press enter and wait…

Now you should have a folder called Quantitative-Big-Imaging-2020 at location where you called the clone.

Update from git with the latest changes

  1. Open a terminal
  2. Go to the repository folder
  3. Type git pull and wait.
  4. The local folder is updated with the latest changes.

Assistance

The exercises will be supported by Stefano van Gogh and Anders Kaestner. There will be office hours in ETZ H75 on Thursdays between 14-15 or by appointment.

Online Tools

The exercises will be available on Kaggle as ‘Datasets’ and we will be using mybinder as stated above.