# Custom Colormap Lookup Table for 'ColorOrientation' of DTI Volume?

**URL:** <https://discourse.slicer.org/t/custom-colormap-lookup-table-for-colororientation-of-dti-volume/30174>\
**Category:** SlicerDMRI\
**Created:** [June 21, 2023, 6:32pm UTC](https://discourse.slicer.org/t/custom-colormap-lookup-table-for-colororientation-of-dti-volume/30174 "2023-06-21T18:32:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ste](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@ste](https://discourse.slicer.org/u/ste)\
**Post date:** [June 21, 2023, 6:32pm UTC](https://discourse.slicer.org/t/custom-colormap-lookup-table-for-colororientation-of-dti-volume/30174/1 "2023-06-21T18:32:07Z")

</div>

Operating system: Ubuntu 20.04.6 LTS  
Slicer version: 4.10.2

Would it be possible to import a custom colormap for the ‘ColorOrientation’ of a DTI volume?

Currently that option is locked to the conventional color-code:  
R: Left-Right  
G: Anterior-Posterior  
B: Inferior-Superior  
and interpolated colors for intermediate directions of fibers.

Different from the canonical convention, I would like to design/import a custom color-code to map such orientations. Is that possible?

If yes, how can I enable such option? Is there a specific file/configuration I can look into?

Thank You  
S.

---

<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:** [June 21, 2023, 6:47pm UTC](https://discourse.slicer.org/t/custom-colormap-lookup-table-for-colororientation-of-dti-volume/30174/2 "2023-06-21T18:47:20Z")

</div>

It would be doable, but you would need to change the C++ code for that.

> <https://github.com/Slicer/Slicer/blob/d7c9a0dbd10552fac6eb33933ecc7c4fd0c8ed5f/Libs/vtkTeem/vtkDiffusionTensorMathematics.cxx#L686-L712>
