Skip to content

KomaMRIFiles

Sequence

KomaMRIFiles.read_seq Function
julia
seq = 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
julia> seq_file = joinpath(dirname(pathof(KomaMRI)), "../examples/1.sequences/spiral.seq")

julia> seq = read_seq(seq_file)

julia> plot_seq(seq)
source

Phantom

KomaMRIFiles.read_phantom_jemris Function
julia
obj = 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
julia> obj_file = joinpath(dirname(pathof(KomaMRI)), "../examples/2.phantoms/brain.h5")

julia> obj = read_phantom_jemris(obj_file)

julia> plot_phantom_map(obj, )
source
KomaMRIFiles.read_phantom_MRiLab Function
julia
obj = 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
julia> obj_file = joinpath(dirname(pathof(KomaMRI)), "../examples/2.phantoms/brain.mat")

julia> obj = read_phantom_MRiLab(obj_file)

julia> plot_phantom_map(obj, )
source
KomaMRIFiles.read_phantom Function
julia
phantom = read_phantom(filename)

Reads a (.phantom) file and creates a Phantom structure from it

source
KomaMRIFiles.write_phantom Function
julia
phantom = write_phantom(ph,filename)

Writes a (.phantom) file from a Phantom struct.

source