# Generate a 3D reconstruction from histology sections

**URL:** <https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 19, 2018, 9:17pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363 "2018-03-19T21:17:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 19, 2018, 9:17pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/1 "2018-03-19T21:17:56Z")

</div>

What I ultimately want to do is create a 3D reconstruction of structure from histology sections. I have imaged the H&E slides and aligned them using TrakEM2 on Fiji, and saved the files individually as TIFF files. When I open the images on Slicer, they are loaded separately and not as one volume.

Others on this forum have asked this question and the solution has been the following:

1. Click on “Add Data”
2. Select one of the image
3. Click “Option” -\> Uncheck “Single File”

However, when I try this, it still does not work.

I would appreciate any help in this matter. Many thanks.

---

<div class="post-metadata">

**Author:** ![ENTresident](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@ENTresident](https://discourse.slicer.org/u/ENTresident)\
**Post date:** [March 19, 2018, 10:11pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/2 "2018-03-19T22:11:55Z")

</div>

I have a very similar problem, using Fiji and Slicer.

---

<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 19, 2018, 10:15pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/3 "2018-03-19T22:15:57Z")

</div>

The files need to have exactly the same size and named similarly (e.g., image\_001, image\_002,…). If you still have issues loading files then upload somewhere and copy-paste the link here so that we can try, too.

---

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 19, 2018, 10:57pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/4 "2018-03-19T22:57:36Z")

</div>

That worked! Thank you Andras. You’re the man.

---

<div class="post-metadata">

**Author:** ![ENTresident](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@ENTresident](https://discourse.slicer.org/u/ENTresident)\
**Post date:** [March 19, 2018, 11:15pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/5 "2018-03-19T23:15:01Z")

</div>

Andreas for president. Worked for everything as well, thanks.

---

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 20, 2018, 7:58pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/6 "2018-03-20T19:58:16Z")

</div>

After I segment all the slides, what is the best way to create a 3-D model?

I tried the “show 3-d” button but the 3-d rendering is not displayed inside the pink box making it difficult to visualize the rendering. Also, it seems like the 3-d rendering is flat so I think I need to input section thickness and distance between slices somewhere, but not sure where.

Thank you!

---

<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 20, 2018, 8:06pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/7 "2018-03-20T20:06:24Z")

</div>

> [@hematoxylin](#):
>
> 3-d rendering is not displayed inside the pink box

Click on crosshair icon (“Center the 3D view…”) right above the 3D view to reset the box size and position.

> [@hematoxylin](#):
>
> it seems like the 3-d rendering is flat

That’s why people who work with 3D imaging don’t use TIFF and similar file formats. TIFF images don’t have a standard way of storing spacing between slices. Anyway, you can specify the correct spacing value in Volumes module “Volume information” section.

---

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 20, 2018, 8:38pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/8 "2018-03-20T20:38:12Z")

</div>

I know using TIFF images is not ideal, but I only have H&E slides and don’t know any other way of creating a 3D reconstruction from these slides.

I have tried the “volume information” tab, but it does not seem to be working for the following reasons:

1. In “volume information”, under “active volume” I am only given the option of choosing one of the tiff images. Should I be able to choose the 3-d segmentation I have created?
2. When I try changing the image spacing distances, it does not change my 3-d rendering. It only manipulates the selected images.
3. Can I input the thickness of each image?

Thank you.

---

<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 20, 2018, 9:26pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/9 "2018-03-20T21:26:54Z")

</div>

When you import your image stack you must select only the first file and uncheck the Single File option. That way slices will be read into a single volume.

---

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 20, 2018, 9:40pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/10 "2018-03-20T21:40:30Z")

</div>

If I choose the first file, how do I upload the rest of the images?  
EDIT: Nevermind, figured this out.

---

<div class="post-metadata">

**Author:** ![hematoxylin](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hematoxylin](https://discourse.slicer.org/u/hematoxylin)\
**Post date:** [March 20, 2018, 10:45pm UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/11 "2018-03-20T22:45:58Z")

</div>

I am still having trouble with the following:

1. When I try changing the image spacing distances, the 3-d rendering does not change. It only causes distortion of the selected images in the red box. The distance between each section is 100 microns so where exactly do I input this value as there are 3 options for “image spacing.”
2. I want to segment all the images and then interpolate the volume between each section (ie interpolate the 100microns between each segment). How do I accomplish this?

Thank you for all the help. Much appreciated it.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 21, 2018, 2:04am UTC](https://discourse.slicer.org/t/generate-a-3d-reconstruction-from-histology-sections/2363/12 "2018-03-21T02:04:46Z")

</div>

There are three values for image spacing because there are three dimensions. Your 100 micron is your slicer thickness so it goes to the z value (last field). For xy dimensions you need to measure the width of your slides and divide it by the number of pixels  
in in your image (unless you have rectangular pixels for some reason, you can do this only for x dimension and enter she value for the first two boxes).

M

Get [Outlook for Android](https://aka.ms/ghei36)
