diff --git a/Chapter01/Links.md b/Chapter01/Links.md new file mode 100644 index 0000000000000000000000000000000000000000..2fbef6a225c89d8f4aa53a7d1219a7fe7e151780 --- /dev/null +++ b/Chapter01/Links.md @@ -0,0 +1,32 @@ +# Exercise 1.1.1 Image convolution + +- Read the image using `skimage.io.imread` +- For convolution use `scipy.ndimage.convolve` +- After completing the exercise test agains `scipy.ndimage.gaussian_filter` + + +# Exercise 1.1.3 Curve smoothing + +- Make the matrix using `scipy.linalg.circulant` +- For matrix-vector multiplication you can use a dedicated function from `numpy` or `@` operator + +# Exericse 1.1.6 Working with volumetric image +- To get hold of all image in a folder, use `sorted(os.listdir(\<FOLDER NAME\>))` + +# Exercise 1.1.7 PCA of multispectral image +- For eigen decomposition use ` np.linalg.eig` +- You can compare your PCA agains the existing implementation `sklearn.decomposition.PCA` + +# Exercise 1.1.8 Bacterial growth from movie frames +- To read the movie as a list of images, use following code block +```python +import imageio +import skimage + +filename = ... # filename of the mp4 movie +vid = imageio.get_reader(filename, 'ffmpeg') + +frames = [] +for v in vid.iter_data(): + frames.append(skimage.color.rgb2gray(v)) +``` \ No newline at end of file