# Dwi2mask: holes in mask images

**URL:** <https://community.mrtrix.org/t/dwi2mask-holes-in-mask-images/484>\
**Category:** Uncategorized\
**Created:** [October 3, 2016, 5:05pm UTC](https://community.mrtrix.org/t/dwi2mask-holes-in-mask-images/484 "2016-10-03T17:05:56Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Alistair\_Perry](https://community.mrtrix.org/user_avatar/community.mrtrix.org/alistair_perry/32/416_2.png) [@Alistair\_Perry](https://community.mrtrix.org/u/Alistair_Perry)\
**Post date:** [December 13, 2017, 11:34pm UTC](https://community.mrtrix.org/t/dwi2mask-holes-in-mask-images/484/17 "2017-12-13T23:34:36Z")

</div>

> [@SimonDavis](#):
>
> But more to the problem in this thread, I’ve found over the past couple of days that a back-and-forth procedure is working best, with first a very lenient bet on all 3 b0’s (f = 0.2), average the b0’s, bias correction, then dwi2mask.

I’m having success with a similar procedure.

I perform `bet2` on the meanb0 image post-eddy correction, then use the subsequent mask for `dwibiascorrect`. After this, I use `dwi2mask` on the biascorrected image.

For high b-value date, It’s worthy to note that this procedure only works when using `-fsl` argument into `dwibiascorrect`.

With `ants` correction:

 ![image](https://community.mrtrix.org/uploads/default/original/2X/9/9c5f9f40d5704f7d247a80d6067e8cb7ee1144d2.jpg)

Now FSL:

 ![image](https://community.mrtrix.org/uploads/default/original/2X/7/7621b37e764295e0f6993e6210771b4a4abb4f8a.jpg)

---

_[View the full topic](https://community.mrtrix.org/t/dwi2mask-holes-in-mask-images/484)._
