# 4D CT animation

**URL:** <https://discourse.slicer.org/t/4d-ct-animation/6159>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 15, 2019, 5:35pm UTC](https://discourse.slicer.org/t/4d-ct-animation/6159 "2019-03-15T17:35:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Arrieta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/carlos_arrieta/32/3267_2.png) [@Carlos\_Arrieta](https://discourse.slicer.org/u/Carlos_Arrieta)\
**Post date:** [March 15, 2019, 5:35pm UTC](https://discourse.slicer.org/t/4d-ct-animation/6159/1 "2019-03-15T17:35:13Z")

</div>

I am trying to create an animation from a 4D CT… What I want to create is a model of a 4D CT where systole and diastole are animated, then export this model to view in hololens/magic leap AR glasses. I am not sure if this can be done using Slicer… Not sure if what i need to do is to create an STL of each cycle then export all of them and somehow use a 3d modeling software to merge them ?

---

<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:** [March 18, 2019, 12:20pm UTC](https://discourse.slicer.org/t/4d-ct-animation/6159/2 "2019-03-18T12:20:36Z")

</div>

Hi -

For viewing cine CT, I’d suggest using volume rendering and not surface models (STL). For this, you should be able to load the data as a volume sequence (see [the sequences extension](https://www.slicer.org/wiki/Documentation/4.10/Extensions/Sequences)) and then view it with a headset compatible with the [SlicerVR](https://github.com/KitwareMedical/SlicerVirtualReality) extension). You’ll get better visualization and lots of interaction and analysis possibilities that you would never have when exporting an STL.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 18, 2019, 1:03pm UTC](https://discourse.slicer.org/t/4d-ct-animation/6159/3 "2019-03-18T13:03:57Z")

</div>

I fully agree with Steve. Clinical augmented reality is still in its infancy, there are too many limitations, which make it hard to find applications that make sense and feasible to implement. On the other hand, virtual reality is here, it is very powerful and inexpensive already, and there are already many applications where it makes a difference.

Anyway, if you are determined to go forward with augmented reality and can accept limitations of using surface rendering as visualization (as opposed to volume rendering), then you can use Slicer to do all the processing and use a very simple Unity-based viewer on the HoloLens or MagicLeap to view these surface meshes.

You can create surface mesh (STL, OBJ, …) file from cardiac CT as shown here:

[![](https://img.youtube.com/vi/BJoIexIvtGo/maxresdefault.jpg "Whole heart segmentation from cardiac CT in 10 minutes") ](https://www.youtube.com/watch?v=BJoIexIvtGo)

If you just need to visualize displacement due to cardiac motion then it may be enough to segment only a single phase, then use Sequence Registration extension to compute displacement field over the entire cardiac cycle, and apply the transformation sequence to your segmentation to get a full 4D segmentation. If you need higher-fidelity then you need to segment several phases manually (you might reuse initial seeds from one phase, potentially saving a few minutes of work per phase). See more information in this topic:

> [@Load multiple cardiac phases for segmentation/virtual reality](https://discourse.slicer.org/t/load-multiple-cardiac-phases-for-segmentation-virtual-reality/5214):
>
> Operating system: windows 10 Slicer version: 4.10 Expected behavior: See cine motion of all phases in volume render/segmentation and then virtual reality Actual behavior: Not working Hello everyone, I read the prior discussions about loading multiple volumes. I loaded a dicom file of CT Heart with 10 phases in order to segment them or see them in volume rendering. But after loading the file, all i see is one volume and have used sequences and sequence browser. But I am unable to work any fu…
