Skip to content

Package Extension for export to other medical imaging data formats #121

@nHackel

Description

@nHackel

Someday it might be nice to have an export to DICOM or NIFTI formats. We could realize that with a package extension on the respective Julia packages (and/or FileIO). In the main package we could then add an export/save function which checks the file ending and collects all implemented file extensions.

This way we can't add new export options outside of MPIFiles and have to manually update the export/save function but I'm not sure that we can rely on the other packages to always define a nice basic type to dispatch on

function export(mdf, file)
    extensions = filter(!isnothing, [Base.get_extension(MPIFiles, :MPIFilesDICOM), ...])
  
  # schaut welche matcht
  ext = ...
  
  # Export
  result = ext.export(mdf, file)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions