Skip to content

DiffusionMRITool/spherical_uniform_sampling_demo

Repository files navigation

This code is used to reproduce images in our paper.

You need to to first install the spherical_uniform_sampling package to use this.

Single shell flipping

  1. Move to working directory
cd Experiment_flip
  1. (Optional) Generate flipped files. There are already polarity optimized files in ElectricRepulsion_dirflip (optimized by dirflip), ElectricRepulsion_MILPEEM (optimized by MILP-P-S(EEM)) and ElectricRepulsion_MILPSC (optimized by MILP-P-S(SC))

You can run corresponding generation script to generate by yourself.

For example, for polarity optimization result by method MILP-P-S(EEM), you should run

python generate_MILPEEM.py
  1. Draw picture
python draw.py

Single shell ordering

  1. Move to working directory
cd Experiment_order_single
  1. (Optional) Generate order optimized files. There are already order optimized files in ElectricRepulsion_dirorder (optimized by dirorder), ElectricRepulsion_MILPOS (optimized by MILP-O-S) and ElectricRepulsion_camino (optimized by orderpoints)

You can run corresponding generation script to generate by yourself.

For example, for order optimization result by method MILP-O-S, you should run

python generate_MILP.py
  1. Draw picture
python draw.py

Multiple shell ordering

  1. Move to working directory
cd Experiment_order_multi
  1. (Optional) Generate order optimized files. There are already order optimized files in HCP_ordered

You can run corresponding generation script to generate by yourself.

For example, for order optimization by method MILP-O-M, you should run

python generate.py
  1. Draw picture
python draw.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages