# B-matrix rotation

**URL:** <https://discourse.slicer.org/t/b-matrix-rotation/26050>\
**Category:** SlicerDMRI\
**Tags:** registration\
**Created:** [November 3, 2022, 12:04pm UTC](https://discourse.slicer.org/t/b-matrix-rotation/26050 "2022-11-03T12:04:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![batel](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@batel](https://discourse.slicer.org/u/batel)\
**Post date:** [November 3, 2022, 12:04pm UTC](https://discourse.slicer.org/t/b-matrix-rotation/26050/1 "2022-11-03T12:04:07Z")

</div>

Hi all,  
I wonder if there is a way of doing B-matrix rotation on slicer.  
I want to change my gradient directions according to the changes that were done in the registration of motion and deddy currents corrections. is it posible?  
Thanks,  
BY

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 3, 2022, 12:36pm UTC](https://discourse.slicer.org/t/b-matrix-rotation/26050/2 "2022-11-03T12:36:18Z")

</div>

These resources should help. If you have rotated bvec files (e.g. from FSL eddy current correction) you can convert them to nrrd for use with ukf tractography and other tools in Slicer.

[https://www.na-mic.org/wiki/NAMIC\_Wiki:DTI:Nrrd\_format](https://www.na-mic.org/wiki/NAMIC_Wiki:DTI:Nrrd_format)

> **[GitHub - pnlbwh/conversion: Various mri conversion/modification scripts](https://github.com/pnlbwh/conversion)**
>
> Various mri conversion/modification scripts. Contribute to pnlbwh/conversion development by creating an account on GitHub.
