MagneticResonanceImaging / MRIReco.jl

Julia Package for MRI Reconstruction
https://magneticresonanceimaging.github.io/MRIReco.jl/latest/
Other
85 stars 22 forks source link

Different number of profiles between repetitions / contrasts #138

Closed aTrotier closed 1 year ago

aTrotier commented 1 year ago

Hi,

I am trying to use MRIReco to reconstruct a cardiac self-gating Ultra Short Echo Time acquisition I have an acquisition with 402 projections repeated 60 times that I am rebinning into 10 cardiac phases.

Currently I am doing that :

rawSG = deepcopy(raw)
for i = 1:length(raw.profiles)
    rawSG.profiles[i].head.idx.contrast = idxCard[i]-1
end

where idxCard correspond to the cardiac phase indices.

When I try to convert to an AcquisitionData I have an error because the number of profiles is not the same between all the phases : https://github.com/MagneticResonanceImaging/MRIReco.jl/blob/00fccd7633e0408afa7c7949a33af29b00d65db2/MRIBase/src/Datatypes/RawAcqData.jl#L113

I'll try to implement that. I think it might also be the opportunity to let the trajectory be different also for the repetition (maybe also for slices ?)