# What is the simplest way to generate an IVUS 3D model from a set of pictures or an avi?

**URL:** https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470
**Category:** Support
**Tags:** build, segmentation, extensions-manager, 3d-model
**Created:** [February 28, 2020, 3:44pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470 "2020-02-28T15:44:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gbolaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gbolaga/32/6165_2.png) [@gbolaga](https://discourse.slicer.org/u/gbolaga)
#### Post date: [February 28, 2020, 3:44pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/1 "2020-02-28T15:44:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/c/9c586ccdfcb944aa4448bb164f2a6d767375d001.jpeg)

---

<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: [February 28, 2020, 4:41pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/2 "2020-02-28T16:41:05Z")

</div>

If you [load a set of pictures into Slicer](https://www.slicer.org/wiki/Documentation/Nightly/FAQ#How_to_load_data_from_a_sequence_of_jpg.2C_tif.2C_or_png_files.3F), it will be interpreted as a 3D volume by default. You can slice through it volume render it, etc.

What kind of visualization or analysis would you like to do?

---

<div class="post-metadata">

### Author: ![gbolaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gbolaga/32/6165_2.png) [@gbolaga](https://discourse.slicer.org/u/gbolaga)
#### Post date: [March 2, 2020, 10:41am UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/3 "2020-03-02T10:41:08Z")

</div>

I want to be able to 3D render a vessel and its plaques from IVUS and from there being able to quantify the amount of calcium

---

<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 3, 2020, 2:56am UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/4 "2020-03-03T02:56:50Z")

</div>

This should all work. After you imported your image stack as a 3D volume, go to Volumes module and set pixel size of the 2D images and distance between slices in Volume Information / Image Spacing.

---

<div class="post-metadata">

### Author: ![gbolaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gbolaga/32/6165_2.png) [@gbolaga](https://discourse.slicer.org/u/gbolaga)
#### Post date: [March 3, 2020, 10:17am UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/5 "2020-03-03T10:17:29Z")

</div>

Yes,

but what if I have an AVI sequence? Would this still be possible?

Also the next step is trying to recognize by using pixel analysis fat from calcium etc…

Regards,

Gaia Gbola

---

<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 3, 2020, 4:21pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/6 "2020-03-03T16:21:32Z")

</div>

You can find lots of tools that will convert AVI files to a stack of png or jpg file, and those will load in Slicer. Note that AVI can be a low-res format and also doesn’t store spacing information so you’ll need to fix that if you want to do anything quantitative. As for getting out fat and calcium, you can do segmentation in Slicer. A lot will depend on the quality of the images. It would be better if you could get the highest possible quality images from your scanner (e.g. dicom and not AVI).

---

<div class="post-metadata">

### Author: ![gbolaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gbolaga/32/6165_2.png) [@gbolaga](https://discourse.slicer.org/u/gbolaga)
#### Post date: [March 5, 2020, 4:31pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/7 "2020-03-05T16:31:54Z")

</div>

Thanks for the suggestion, I was able to transform the AVI file into PNG format with MATLAB, now I am trying to transfer it over to Slicer. There are around 3000 frames, so it is really taking a long time to load. Hopefully the result will be positive.

Regards

Gaia Gbola

---

<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 5, 2020, 8:28pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/8 "2020-03-05T20:28:54Z")

</div>

The [ImageStacks](https://github.com/pieper/SlicerImageStacks) module might help. It’s still in development, but you can either install it using the instructions on the website or it comes with the [SlicerMorph](https://slicermorph.github.io/) extension.

---

<div class="post-metadata">

### Author: ![gbolaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gbolaga/32/6165_2.png) [@gbolaga](https://discourse.slicer.org/u/gbolaga)
#### Post date: [March 6, 2020, 2:09pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/9 "2020-03-06T14:09:36Z")

</div>

Hello,

could you give me any directions on how to download the image stacks module?

I pasted the code I found on github in my nightly but it seems not to work at all.

Thanks for the attention,

Sincerely

Gaia Gbola

---

<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 6, 2020, 2:33pm UTC](https://discourse.slicer.org/t/what-is-the-simplest-way-to-generate-an-ivus-3d-model-from-a-set-of-pictures-or-an-avi/10470/10 "2020-03-06T14:33:35Z")

</div>

Maybe the easiest is to get it as part of SlicerMorph:

[https://slicermorph.github.io/#two](https://slicermorph.github.io/#two)
