Exercise

Metadata

ImageIO reads in data as Image objects. These are standard NumPy arrays with a dictionary of metadata.

Metadata can be quite rich in medical images and can include:

  • Patient demographics: name, age, sex, clinical information
  • Acquisition information: image shape, sampling rates, data type, modality (such as X-Ray, CT or MRI)

Start this exercise by reading in the chest image and listing the available fields in the meta dictionary.


After reading in the image, use im.meta to select the true statement from the list below.

Instructions 1/2

undefined XP
    1
    2
  • Read in the image, "chest-220.dcm".
  • Print the available keys in the metadata dictionary. Use the the keys() method of im.meta.