# Tensor image looks strange under the OFD display

**URL:** https://community.mrtrix.org/t/tensor-image-looks-strange-under-the-ofd-display/6058
**Category:** Uncategorized
**Tags:** tractography
**Created:** [September 23, 2022, 7:00am UTC](https://community.mrtrix.org/t/tensor-image-looks-strange-under-the-ofd-display/6058 "2022-09-23T07:00:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hyting](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@hyting](https://community.mrtrix.org/u/hyting)
#### Post date: [September 23, 2022, 7:00am UTC](https://community.mrtrix.org/t/tensor-image-looks-strange-under-the-ofd-display/6058/1 "2022-09-23T07:00:34Z")

</div>

HI,dear developers,  
I have created the diffusion tensor image with the following codes, and everything went successfully. But when I check the tensor image with mrview, it looks weird (see below).  
What may cause this?

```auto
# create a mask
dwi2mask align.mif - | maskfilter - dilate dwi_mask.mif

# create diffusion tensor
dwi2tensor -mask dwi_mask.mif align.mif dt.mif

```

Note: align.mif is that conducted the DWI to TIw alignment.

 ![tensor](https://community.mrtrix.org/uploads/default/original/2X/2/20471e9d5e42cd907230ca0e03a6336b8a768b50.jpeg)

Thankyou in advanced!

Best,  
yuting.

---

<div class="post-metadata">

### Author: ![jdtournier](https://community.mrtrix.org/user_avatar/community.mrtrix.org/jdtournier/32/2594_2.png) [@jdtournier](https://community.mrtrix.org/u/jdtournier)
#### Post date: [October 6, 2022, 12:28pm UTC](https://community.mrtrix.org/t/tensor-image-looks-strange-under-the-ofd-display/6058/2 "2022-10-06T12:28:43Z")

</div>

Hi Yuting,

If you’re talking about the black tensors, I suspect these correspond to tensors that happen to have been estimated with negative eigenvalues. Our fitting procedure doesn’t explicitly constraint the tensors to be positive definite, so this can happen. You would tend to see this in very anisotropic voxels due to noise, or indeed in voxels that are simply very noisy. This is why you can see many of them in the rim of CSF around the brain. The one you’re highlighting under the crosshairs is I suspect also in a noisy CSF region (presumably the Sylvian fissure?).

As to why it looks OK in the separate ODF display: that’ll probably be simply because the components of the tensor are interpolated from its nearest neighbours, so you won’t get the exact same coefficients as you would at the very centre of the voxel. You _should_ (🤞) see the same thing if you untick the ‘interpolation’ check-box.

All the best,  
Donald.

---

<div class="post-metadata">

### Author: ![hyting](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@hyting](https://community.mrtrix.org/u/hyting)
#### Post date: [October 10, 2022, 9:20am UTC](https://community.mrtrix.org/t/tensor-image-looks-strange-under-the-ofd-display/6058/3 "2022-10-10T09:20:35Z")

</div>

Hi Donald,

Thank you for your reply.

As you said, this maybe caused by the noise, but I have denoised, why there still so much noise?

> [@jdtournier](#):
>
> As to why it looks OK in the separate ODF display: that’ll probably be simply because the components of the tensor are interpolated from its nearest neighbours, so you won’t get the exact same coefficients as you would at the very centre of the voxel.

And according to your reply, this is just the display issue, it doesn’t seem to affect the metrics generated from diffusion tensor such as FA, am I right?

Best,  
Yuting
