Load volumes
ImageIO's volread() function can load multi-dimensional datasets and create 3D volumes from a folder of images. It can also aggregate metadata across these multiple images.
For this exercise, read in an entire volume of brain data from the "tcia-chest-ct" folder, which contains 25 DICOM images.
Este exercício faz parte do curso
Biomedical Image Analysis in Python
Instruções do exercício
- Use
volread()to load the directory, "tcia-chest-ct". - Print the available metadata using the
keys()method ofvol.meta. - Print the
shapeof the volume.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Import ImageIO
____
# Load the "tcia-chest-ct" directory
vol = ____
# Print image attributes
print('Available metadata:', ____)
print('Shape of image array:', ____)