KomaMRIFiles
Sequence
KomaMRIFiles.read_seq โ Functionseq = read_seq(filename)Returns the Sequence struct from a Pulseq file with .seq extension.
Arguments
filename: (::String) absolute or relative path of the sequence file.seq
Returns
seq: (::Sequence) Sequence struct
Examples
julia> seq_file = joinpath(dirname(pathof(KomaMRI)), "../examples/1.sequences/spiral.seq")
julia> seq = read_seq(seq_file)
julia> plot_seq(seq)Phantom
KomaMRIFiles.read_phantom_jemris โ Functionobj = read_phantom_jemris(filename)Returns the Phantom struct from a JEMRIS phantom file .h5.
Arguments
filename: (::String) the absolute or relative path of the phantom file.h5
Returns
obj: (::Phantom) Phantom struct
Examples
julia> obj_file = joinpath(dirname(pathof(KomaMRI)), "../examples/2.phantoms/brain.h5")
julia> obj = read_phantom_jemris(obj_file)
julia> plot_phantom_map(obj, :ฯ)KomaMRIFiles.read_phantom_MRiLab โ Functionobj = read_phantom_MRiLab(filename)Returns the Phantom struct from a MRiLab phantom file .mat.
Arguments
filename: (::String) the absolute or relative path of the phantom file.mat
Returns
obj: (::Phantom) Phantom struct
Examples
julia> obj_file = joinpath(dirname(pathof(KomaMRI)), "../examples/2.phantoms/brain.mat")
julia> obj = read_phantom_MRiLab(obj_file)
julia> plot_phantom_map(obj, :ฯ)KomaMRIFiles.read_phantom โ Functionphantom = read_phantom(filename)Reads a (.phantom) file and creates a Phantom structure from it
KomaMRIFiles.write_phantom โ Functionphantom = write_phantom(ph,filename)Writes a (.phantom) file from a Phantom struct.