Open evaalonsoortiz opened 4 years ago
When going the route of fit B0 vs pressure first then compute the derivative we are re-normalizing values twice. First here: https://github.com/neuropoly/realtime_shimming/blob/a7690fba9cc4e7fca6c58ceda76dd7bf516a73c5/example/realtime_zshim.m#L219 Then here agin: https://github.com/neuropoly/realtime_shimming/blob/a7690fba9cc4e7fca6c58ceda76dd7bf516a73c5/example/realtime_zshim.m#L313
This leads to a discrepancy with the results where we first compute the gradient (Gz) then fit that with respect to pressure.
This issue has been addressed with #rt_issue61
When going the route of fit B0 vs pressure first then compute the derivative we are re-normalizing values twice. First here: https://github.com/neuropoly/realtime_shimming/blob/a7690fba9cc4e7fca6c58ceda76dd7bf516a73c5/example/realtime_zshim.m#L219 Then here agin: https://github.com/neuropoly/realtime_shimming/blob/a7690fba9cc4e7fca6c58ceda76dd7bf516a73c5/example/realtime_zshim.m#L313
This leads to a discrepancy with the results where we first compute the gradient (Gz) then fit that with respect to pressure.