Plot images
Perhaps the most critical principle of image analysis is: look at your images!
Matplotlib's imshow() function gives you a simple way to do this. Knowing a few simple arguments will help:
cmapcontrols the color mappings for each value. The "gray" colormap is common, but many others are available.vminandvmaxcontrol the color contrast between values. Changing these can reduce the influence of extreme values.plt.axis('off')removes axis and tick labels from the image.
For this exercise, plot the CT scan and investigate the effect of a few different parameters.
Diese Übung ist Teil des Kurses
<Kurs>Biomedical Image Analysis in Python</Kurs>Interaktive praktische Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Import ImageIO and PyPlot
import imageio.v2 as imageio
import ____ as plt
# Read in "chest-220.dcm"
im = ____