# Bbregister for generating atlas

**URL:** <https://community.mrtrix.org/t/bbregister-for-generating-atlas/4696>\
**Category:** Uncategorized\
**Created:** [March 24, 2021, 6:46pm UTC](https://community.mrtrix.org/t/bbregister-for-generating-atlas/4696 "2021-03-24T18:46:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maxpietsch](https://community.mrtrix.org/user_avatar/community.mrtrix.org/maxpietsch/32/25_2.png) [@maxpietsch](https://community.mrtrix.org/u/maxpietsch)\
**Post date:** [March 26, 2021, 9:59am UTC](https://community.mrtrix.org/t/bbregister-for-generating-atlas/4696/2 "2021-03-26T09:59:50Z")

</div>

> [@heena-manglani](#):
>
> As the transform mats are not identical between the two methods, which one is recommended?

I’d choose the method based on the accuracy and robustness on your data.

> [@heena-manglani](#):
>
> Is there any way I could still use the dwi2orig.dat and perform some operation on it to get it to what mrtrix “expects”?

`transformconvert` can convert flirt or ITK transformations. Unless `bbregister` uses one of these file format conventions (I don’t know), this conversion to mrtrix format won’t work. You could create an identity warp and warp that to target space using `mri_vol2vol` to make a (linear) warp file as described in the [wiki](https://community.mrtrix.org/t/registration-using-transformations-generated-from-other-packages/2259). Alternatively, you might want to use `flirt` with the `bbr`-type cost function.

> [@heena-manglani](#):
>
> –inverse

This might be related to a long dash [issue](https://community.mrtrix.org/t/trouble-with-mrmath/4158/2).

---

_[View the full topic](https://community.mrtrix.org/t/bbregister-for-generating-atlas/4696)._
