# Does anyone know how to set up the root configuration to simulate images similar to real coronary angiography?

**URL:** <https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445>\
**Category:** Newbie\
**Created:** [November 27, 2025, 1:03pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445 "2025-11-27T13:03:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangmo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/6f9a4e/32.png) [@zhangmo](https://root-forum.cern.ch/u/zhangmo)\
**Post date:** [November 27, 2025, 1:03pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/1 "2025-11-27T13:03:42Z")

</div>

* * *

How to use low doses to make our simulated images visible.And how to enhance the realism of our simulated images to better match real coronary angiograms.I have used GATE to simulate images similar to coronary angiography, but it requires a high number of particle doses. Additionally, the simulated image data files show the spine and ribs with clarity, yet their appearance differs significantly from real coronary angiograms. In my simulations, the spine and ribs are clearly visible, but the overall style does not resemble that of a real coronary angiogram.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 27, 2025, 1:18pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/2 "2025-11-27T13:18:43Z")

</div>

Welcome to the ROOT forum and thanks for your question.  
Can you be more precise ? what are "your simulated images " ? 2 D histograms ?

---

<div class="post-metadata">

**Author:** ![zhangmo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/6f9a4e/32.png) [@zhangmo](https://root-forum.cern.ch/u/zhangmo)\
**Post date:** [November 27, 2025, 1:47pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/3 "2025-11-27T13:47:36Z")

</div>

Our phantom was simulated in GATE, resulting in 2D images stored as DAT files.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 27, 2025, 2:03pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/4 "2025-11-27T14:03:14Z")

</div>

May that’s more a GEANT 4 question ? What is a DAT file, is it ASCiII ?

---

<div class="post-metadata">

**Author:** ![zhangmo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/6f9a4e/32.png) [@zhangmo](https://root-forum.cern.ch/u/zhangmo)\
**Post date:** [November 27, 2025, 2:12pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/5 "2025-11-27T14:12:30Z")

</div>

The file uses the .dat file extension

---

<div class="post-metadata">

**Author:** ![zhangmo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/6f9a4e/32.png) [@zhangmo](https://root-forum.cern.ch/u/zhangmo)\
**Post date:** [November 27, 2025, 2:14pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/6 "2025-11-27T14:14:36Z")

</div>

That’s likely a GEANT4 problem.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 2, 2025, 3:46pm UTC](https://root-forum.cern.ch/t/does-anyone-know-how-to-set-up-the-root-configuration-to-simulate-images-similar-to-real-coronary-angiography/64445/7 "2025-12-02T15:46:57Z")

</div>

You just need to set up (before drawing your image as a TH2) the proper color palette to mimick what you are used to from coronary angiography.

For example:

```auto
gStyle->SetPalette(kGreyScale);
TColor::InvertPalette();

```

If you want more custom things, you can define them via  
`TColor::CreateColorTableFromFile`  
or  
`TColor::CreateGradientColorTable`
