Reading data#
MedicalImageAnalysis exposes both top-level convenience functions and format-specific reader classes.
Top-level reader functions#
The main import surface is intentionally simple:
medicalimageanalysis.file_parsermedicalimageanalysis.read_dicomsmedicalimageanalysis.read_mhdmedicalimageanalysis.read_3mf
These are the best entry points for most workflows because they match how the
package is re-exported from medicalimageanalysis.__init__.
Reader subpackage#
The medicalimageanalysis.read package groups specialized reader classes:
DicomReaderMhdReaderThreeMfReaderStlReaderVtkReader
Use the class-based readers when you want lower-level control or when you are documenting a format-specific pipeline.
Typical workflow#
Use
file_parserto classify files in a study directory.Pass the discovered file list into the appropriate reader.
Inspect loaded objects through the shared
Dataregistry.Continue with ROI conversion, meshing, or registration utilities.