Commit b617e91f authored by Christian Tischer's avatar Christian Tischer
Browse files

Merge branch 'python-materials' into 'master'

Add initial python materials

See merge request grp-bio-it/image-analysis-training-resources!37
parents 7b278e5e 9645db93
Pipeline #10607 passed with stages
in 1 minute and 25 seconds
``` python
import numpy as np
import matplotlib.pyplot as plt
from skimage import io
# load the image from file
image_file = "/image-analysis-training-resources/image_data/xy_8bit__two_cells.tif"
image = io.imread(image_file)
# binarize the image, so that all values larger than the threshold are foreground
threshold_value = 60
binarized = image > threshold_value
# display the original and the binarized image
fig, ax = plt.subplots(2)
For associated course material in jupyter, [click here](
You can also spin up an interactive [binder session](
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment