-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
understanding RandomMotion #85
Comments
Hello, The rationale behind demeaning the affine transforms is that we want the position of the brain to be in roughly the same position as the segmentation label, i.e. we don't want the brain to move when applying the motion artefact. Therefore, when applying a random sequence of motions, we have to undo the geometric mean by dividing by the weighted average transform. However, the weight should not only depend on the time duration the object is in each position, but also the frequencies acquired at each position. For example, if the brain moves in the outer k-space region, this corresponds to high frequencies, and therefore the contribution of that position to the final image is less. But if the motion happens close to the k-space center, this corresponds to low frequencies which have a greater impact on the final position of the brain. In this implementation, the weighting is simply the time spent in each position, and the effect of acquiring different frequencies is mitigated by replacing the center of the k-space with the original k-space - essentially ignoring very low frequencies to keep most of the brain signal in the same position. |
Thanks for the explanation. I did a simple experience with adding only one motion at different moment of the k space (with a simplified code that do not include neither demean nor sort_spectra). In other word we want the identity matrix in the center of the kspace, this is what is done, if I understand correctly, with the funciton sort_spectra no |
I'm not sure I quite follow. If you use the sort_spectra function, then there will be no global shift because as you say it is identity matrix in the center of the k-space - which looks correct in your first and third images. |
Okay I think I understand you. There may be some issues in the code currently. I think doing both demeaning and replacing the center of the k-space using the sort_spectra function are working against each other. I think in the meantime you should not use demeaning and just use the sort_spectra function to strop any global moiton. Note that in my original paper, the weighting is much more complicated, but this is not implemented in this code yet. The weighting must take into account the frequencies acquired at each position. This will be implemented in the near future. |
can you give me the reference of the paper, I'll try to understand. I do not understand how a more complex weighting will solve the issue, |
|
@romainVala what do you need? I thought that's the paper you were asking for. |
yes, thanks, |
Oh, ok. |
I did find the precision on the exact weighting, but I am not convince at all it will help to remove global motion ... |
I'll remove the demeaning for now. We can reopen this issue and take a look at the implementation after MICCAI. |
Sorting the spectra so that the original image is in the middle of the k-space has a similar effect to demeaning all the transforms, therefore is a bad idea to use both. This commit remove the demeaning for now. We might implement the exact method of Shaw et al. in the near future. Resolves #85.
Sorting the spectra so that the original image is in the middle of the k-space has a similar effect to demeaning all the transforms, therefore is a bad idea to use both. This commit remove the demeaning for now. We might implement the exact method of Shaw et al. in the near future. Resolves #85.
Hello
I would like to understand what is the rational behind the demean of the affine transforms.
If I understand correctly you divide each affine by the weighted mean of the affine.
(where the weighted correspond to the time duration the object is in the possition given by the affine)
thanks
The text was updated successfully, but these errors were encountered: