Professional Documents
Culture Documents
Lecture 1
Lecture 1
Alessandra Retico
alessandra.retico@pi.infn.it
INFN - Pisa
Objectives of the Medical Physics module
• to provide students with an overview of the computational and mathematical
methods used in medical image processing
• to complement the programming skills you acquired in the first two modules of
this course with the knowledge of the Matlab programming language
MODEL TRAINING
• Deriving features form images, image
segmentation
• Data quality control pipelines, outlier removal,
dimensionality reduction
• Data analysis and classification
• Performance evaluation: evaluation metrics,
cross-validation, permutation test
• Machine-learning and deep-learning tools for
PREDICTION
segmentation and classification
• Data augmentation, transfer learning,
retrieving localization information
Medical
images are
more than
pictures!!!
• Medical images are not limited to 2D, as natural pictures generally are
Nuclear Medicine
Intensity of emitted g rays Distribution functional radiotracers
(SPECT, PET)
… … …
Precision
medicine
nowadays
CT image reconstruction from sinogram MRI image reconstruction from k-space data
tim
e dir
ec
tio Axon fiber tracts from diffusion-weighted
Activated brain areas while executing a task n s MRI data
• Algorithms for
information processing
enter at many levels in
the image formation
pipeline
Structure Function
3D 3D 4D 3D 4D 4D
Computing Methods for Experimental Physics and Data Analysis - A. Retico 16
Structural MRI T1-weighted images
Sagittal Coronal
Axial or transaxial
3D array of data:
• The voxel is the “volume element”
• Typical “High resolution” MRI T1-w
images: vx × vy × vz ≈ 1 × 1 × 1 mm3 e.g. Nx x Ny x Nz = 256 x 256 x 150
16 bit ~20 MB
A. Retico - INFN Pisa - Models and Algorithms in Medical Imaging - SOSC 2018 17
Functional MRI (fMRI)
• BOLD Response: blood-oxygen-level-
dependent (BOLD) contrast
• Typically, 1 volume per second (3x3x3mm3) is
acquired for 4-5 min
• Stimuli (visual, auditory, tactile, …) are
administered to the subject during the scan
Functional connectivity
• Resting state rs-fMRI: study of temporal
correlations between spatially remote
neurophysiological events
Computing Methods for Experimental Physics and Data Analysis - A. Retico 18
Data dimensionality: 2D/3D/4D/..nD images
• Image element:
• pixel: picture element
• voxel: volume element
N. bit Conversion dynamics Decimal (binary) range of values Maximum conversion error
• Structural image
• Image overlay
1 0 0 7
2 0 0 15
…
128 240 79 0
…
255 255 255 255
• Pixel data cannot be separated from the description of the image formation
procedure:
• Images should be self-descriptive
• The DICOM format only stores integer numbers as pixel values, thus a slope and
an intercept to linearly transform data in the allowed range are specified
Computing Methods for Experimental Physics and Data Analysis - A. Retico 26
DICOM metadata
A DICOM data element, or attribute, is composed of the
following most important parts:
• a tag that identifies the attribute, usually in the format
(XXXX,XXXX) with hexadecimal numbers, and may be divided
further into DICOM Group Number and DICOM Element Number;
• a DICOM Value Representation (VR) that describes the data type
and format of the attribute value (e.g. PN: Person Name; DT: Date
Time; SS: Signed Short).
Check https://www.dicomlibrary.com/dicom/dicom-tags/
• most fields are optional
• there are also vendors’ private keys
• some examples:
• Session Name and Study Number
• (0008, 0090) ID Referring Physician
• (0010,0010) Patient's Name
• Image “Shape”
• (0028, 0010) IMG Rows
• (0028, 0011) IMG Columns
• (0028, 0030) IMG Pixel Spacing
• (0018, 0050) ACQ Slice Thickness
• How and where the image data is stored
• (0028, 0100) IMG Bits Allocated
• (0028, 0101) IMG Bits Stored
• (0028, 0102) IMG High Bit
• NIfTI is the default file format of most software packages for neuroimaging post-
processing:
• FSL, SPM, itk-SNAP, 3D Slicer, ITK & VTK, nipy, etc.
• The NIfTI format allows a double way to store the orientation of the image volume in the
space:
1. rotation + translation to be used to map voxel coordinates to the scanner reference
frame
2. 12-parameter or more general transformation adopted to realign the volume to a
standard template coordinate system.
• Requirements:
• numpy library is recommended, (it is only required if manipulating pixel data)
• matplotlib is necessary to visualize data
• Sources
• https://www.dicomstandard.org
• https://eugdpr.org
• https://pydicom.github.io/pydicom/