Skip to content

Commit

Permalink
Merge pull request #116 from MagneticResonanceImaging/OffsetBruker_2D
Browse files Browse the repository at this point in the history
OffsetBruker for 2D acquisition
  • Loading branch information
tknopp authored Oct 7, 2022
2 parents 0f9c32a + f324058 commit 8d19c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MRIBase/src/MRIBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function correctOffset(acq::AcquisitionData,offsetCor=[0,0,0])
reps = size(acq.kdata,3)

shift = offsetCor ./ acq.fov
shift = shift .* float.(acq.encodingSize)
shift = (shift .* float.(acq.encodingSize))[1:ndims(acq.traj[1])]
# nodes -> -0.5 to 0.5
for i = 1:contrs
phase_nodes = exp.(-2π * im * acq.traj[i].nodes[:,acq.subsampleIndices[i]]' * shift)
Expand Down

0 comments on commit 8d19c14

Please sign in to comment.