You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on self-navigated multi-shot DW FSE data, and this entails reconstruction of each of the (aliased) shots to compute phase correction maps for each shot.
As far as I can tell this should be possible using the operator / solver interface here, but I'm getting a "shape mismatch" error which I'm struggling to fix. I've precomputed the SENSE maps using BART and they look reasonable. I based my attempt on the encodingOps_parallel present in the code, and as far as I can tell I'm presenting data in the right format
Given a single shot of data with 1440 k-space points across 8 channels, we have
#make some dummy data
data = rand(ComplexF32, 1440, 8)
trajectory = rand(3, 1440).- 0.5
matrix_size = (74, 66, 60)
b0_sense = rand(ComplexF32, matrix_size..., 8)
#build some operators
ft = LinearOperatorCollection.NFFTOp(ComplexF32, shape=matrix_size, nodes=trajectory, S=Vector{ComplexF32})
SOp = SensitivityOp(b0_sense)
forward_op = DiagOp(ft ; copyOpsFn=copy) ∘ SOp
#make a solver
linear_solver = createLinearSolver(CGNR, forward_op)
#(hopefully) solve
I = solve!(linear_solver, data_trans)
As far as I can tell it's just something about the operator interface that I'm not understanding, but if anyone knows what mistake I'm making, it'd be a huge help. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on self-navigated multi-shot DW FSE data, and this entails reconstruction of each of the (aliased) shots to compute phase correction maps for each shot.
As far as I can tell this should be possible using the operator / solver interface here, but I'm getting a "shape mismatch" error which I'm struggling to fix. I've precomputed the SENSE maps using BART and they look reasonable. I based my attempt on the encodingOps_parallel present in the code, and as far as I can tell I'm presenting data in the right format
Given a single shot of data with 1440 k-space points across 8 channels, we have
This fails with the following stacktrace:
As far as I can tell it's just something about the operator interface that I'm not understanding, but if anyone knows what mistake I'm making, it'd be a huge help. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions