Skip to content
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

Big refactor: Use affine matrice to locate arrays #11

Merged
merged 48 commits into from
Feb 24, 2025
Merged

Big refactor: Use affine matrice to locate arrays #11

merged 48 commits into from
Feb 24, 2025

Conversation

paquiteau
Copy link
Member

This PR changes how Phantom (e.g spatial arrays) are considered in SNAKE.

  • First the simulation config now has a fov field, that contains all parameters to locate an array in the RAS referential.
  • Phantom (initialized from BrainWeb) also have a affine matrix field (BrainWeb data is in fact in MNI152 space)
  • The FOV is applied in the Engine acquisition, and the "Samplers" generating trajectories are aware of it.
  • It also fixes the contrast in the 2D mode (it is now computed with a TR_eff, set to the volumic TR in case of 2D excitations)

Some further improvement

  • Add examples about motion (using the new FOV system, it is in fact fairly easy to do !)
  • Add unit test setup for file writing and loading

@paquiteau paquiteau merged commit fed0d03 into main Feb 24, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant