# Segmenting pulmonary fibrosis

**URL:** https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792
**Category:** Support
**Tags:** segmentation, filters
**Created:** [February 2, 2021, 10:26am UTC](https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792 "2021-02-02T10:26:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![joachim](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@joachim](https://discourse.slicer.org/u/joachim)
#### Post date: [February 2, 2021, 10:26am UTC](https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792/1 "2021-02-02T10:26:56Z")

</div>

I was asked to create a model of pulmonary fibrosis (3D-printing). It’s easy to see the structure of cells and thin walls on the images, but it is difficult to segment this structure.

_Cells drawn by hand_

 ![manual](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/c/0c02ad5649b395f055c3ba80a340f932902a3ef9.jpeg)

_Interpolated and non-interpolated view_

 ![Interpolate](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/3/1332a5497c76145bb107a4bd58e3b05369bad3f9.jpeg)

As you can see with non-interpolated pixels, the walls are not clearly defined so thresholding is difficult. What should I do? I have some ideas:

- Create a volume with higher pixel resolution and interpolate the pixels so it looks like the interpolated view. How can this be done in Slicer?
- Sharpen the image so that the structure becomes clearer. How can this be done in Slicer? Is there a useful filter in ITK Simple Filters?

You can try [my project here](https://1drv.ms/u/s!AoVqWdO9AjfwgXxhvvFZFrultWlI?e=bF2taN).

---

<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 2, 2021, 1:38pm UTC](https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792/2 "2021-02-02T13:38:47Z")

</div>

> [@joachim](#):
>
> Create a volume with higher pixel resolution and interpolate the pixels so it looks like the interpolated view. How can this be done in Slicer?

See [here](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#segmentation-is-not-accurate-enough).

> [@joachim](#):
>
> Sharpen the image so that the structure becomes clearer. How can this be done in Slicer? Is there a useful filter in ITK Simple Filters?

Yes, there are many ITK filters available in Simple Filters module that may be used for sharpening. For example, type `sharp` or `anisotropic` into the search field to find relevant filters. You can also ask advice for filter selection in the [ITK forum](https://discourse.itk.org/).

You can learn more about segmentation in Slicer [here](https://slicer.readthedocs.io/en/latest/user_guide/image_segmentation.html).

---

<div class="post-metadata">

### Author: ![joachim](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@joachim](https://discourse.slicer.org/u/joachim)
#### Post date: [February 4, 2021, 10:19am UTC](https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792/3 "2021-02-04T10:19:16Z")

</div>

Thank you. The Slicer documentation has become better, I see.

[Your link](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#segmentation-is-not-accurate-enough) tells you how to increase the resolution of the segmentation volume (binary label map). This lets me segment with better details. However, when doing a thresholding from the original volume, the details in the segmentation volume will not increase since it uses a volume with less resolution as basis.

If you take a look at the interpolated image above, the walls between the cells looks more defined. Therefore I want to know if I can create a new volume with higher resolution containing the interpolated pixels (so it looks like the interpolated image)? My plan was to then use some filter to sharpen the walls, and then do the segmentation (thresholding).

---

<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 4, 2021, 2:39pm UTC](https://discourse.slicer.org/t/segmenting-pulmonary-fibrosis/15792/4 "2021-02-04T14:39:38Z")

</div>

> [@joachim](#):
>
> Therefore I want to know if I can create a new volume with higher resolution containing the interpolated pixels (so it looks like the interpolated image)?

See “Option A” at the link provided above.
