# How can I insert a custom spherical object into a DICOM file?

**URL:** <https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [September 8, 2021, 4:47pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577 "2021-09-08T16:47:37Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 8, 2021, 4:47pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/1 "2021-09-08T16:47:37Z")

</div>

Hi there! I was wondering if there is a way to insert a custom spherical object into a DICOM file. I would like to segment CT images along the outer edges of that spherical object. Grateful for any instructions on how to do that. I’m a new 3D slicer user and am using version 4.11.20210226.

Best,  
Maya

---

<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:** [September 8, 2021, 5:09pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/2 "2021-09-08T17:09:02Z")

</div>

You can use Segment Editor module to draw a sphere using the “Paint” effect. Enable “Sphere brush” option. You can click the “%” sign next to the brush size selector to specify sphere size in millimeter.

You can use the sphere that you drew as a mask for further segmentation or burn it into the volume using “Mask volume” effect.

[This page](https://slicer.readthedocs.io/en/latest/user_guide/image_segmentation.html) is a good starting point for learning about how to use segmentations.

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 8, 2021, 5:12pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/3 "2021-09-08T17:12:19Z")

</div>

Dear Mr. Lasso,

thank you for your quick response! I actually want to insert an ellipsoidal sphere. Is there a way to do that?

Thank you so much in advance!

Best,  
Maya

---

<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:** [September 8, 2021, 5:55pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/4 "2021-09-08T17:55:06Z")

</div>

You need to create the ellipsoid as a model node and import it into a the segmentation.

You can create an ellipsoid by creating a sphere (for example, using “Create models” module in SlicerIGT extension), then move it and stretch it using Transforms module. You can enable interactive translation/rotation/scaling in Display / Interaction / Visible in 3D view (click “More options” and check “Enable scaling” to allow stretching).

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/3/03784d01d3d005aef4a3f70660caaf78159a87e9.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/3/03784d01d3d005aef4a3f70660caaf78159a87e9.mp4)

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 8, 2021, 11:26pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/5 "2021-09-08T23:26:47Z")

</div>

That is extremely helpful, thank you so much! I tried installing the SlicerIGT extension but unfortunately did not manage to do so. Could you kindly explain to me how I can do that?

Thank you for your time and efforts.

Best,  
Maya

---

<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:** [September 9, 2021, 1:18am UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/6 "2021-09-09T01:18:06Z")

</div>

The extensions server is being migrated to a new version, until the transition is completed the Slicer Stable Release requires manual extension download and install. The extensions manager works well in the latest Slicer Preview Release, so I would recommend to use that now if you want to install extensions.

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 9, 2021, 8:30pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/7 "2021-09-09T20:30:59Z")

</div>

Dear Mr. Lasso,

thank you so much for your reply! I have managed installing the extension and creating the sphere per your instructions. How do I now display the sphere in the DICOMS? Can I create a sphere with specific dimensions too? Best,  
Maya

---

<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:** [September 10, 2021, 3:22am UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/8 "2021-09-10T03:22:35Z")

</div>

> [@Maya](#):
>
> Can I create a sphere with specific dimensions too?

You specified the dimension in Create Models module.

> [@Maya](#):
>
> How do I now display the sphere in the DICOMS?

What software you would like to import the sphere into?  
Would you like to paste the ellipsoid into the image (make it appear as a bright or dark object)?  
Or would you like to export the ellipsoid as a DICOM Segmentation Object? Or as an RT structure set?  
What is your overall goal?

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 10, 2021, 3:39am UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/9 "2021-09-10T03:39:36Z")

</div>

Dear Mr. Lasso,

Thanks again for your swift reply!  
I‘m not sure where I specified the dimensions of the sphere. I only stretched it using the transform module but was not able to design it with specific dimensions. How can I make the ellipsoid have the  
dimensions 45mm x 26mm for example?

I would like to paste the ellipsoid into axial CT slices (red window) and make it appear as a bright object (or rather as an ellipsis on the 2 dimensional CT images). I would like to manually segment the area where that ellipsoid touches the chest wall, using the ellipsoid as guidance.

Do you think that that is possible? Thank you so much for your time and efforts.

Best,  
Maya

---

<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:** [September 10, 2021, 3:45am UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/10 "2021-09-10T03:45:51Z")

</div>

> [@Maya](#):
>
> How can I make the ellipsoid have the  
> dimensions 45mm x 26mm for example?

In Create models module, you can type 10.0mm size and then use Surface toolbox and set scaling factor of 4.5, 4.5, 2.6.

> [@Maya](#):
>
> I would like to paste the ellipsoid into axial CT slices (red window) and make it appear as a bright object (or rather as an ellipsis on the 2 dimensional CT images).

You can use import this model into the segmentation and paste it into the volume using Mask volume effect in Segment Editor module.

> [@Maya](#):
>
> I would like to manually segment the area where that ellipsoid touches the chest wall, using the ellipsoid as guidance.

I don’t understand this exactly. What would you like to segment, for what clinical purpose? Would you like segment the chest wall so that you can measure breast volume?

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 10, 2021, 11:55am UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/11 "2021-09-10T11:55:27Z")

</div>

Dear Mr. Lasso,

thank you so much, I managed to create the ellipsoid with custom dimensions!

However, I still am unable to import the ellipsoid into the axial (red) view of the DICOMS. I clicked on Mask Volume, chose the operation „fill inside“. I clicked on „apply“, but the ellipsoid does not show in the CT Images. Is there anything else I have to consider?

I‘d like to make these measurements for research purposes. I’m a researcher at MGH working on a project in interventional radiology. For this project I am looking at CT images during cryoablation. The ellipsoid represents the iceball (per manufacturer manual) and I‘d like to measure the pleural surface, that is in contact with said iceball.

Thank you SO much for your help, I appreciate your time and efforts a lot!

Best,  
Maya

---

<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:** [September 10, 2021, 8:04pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/12 "2021-09-10T20:04:27Z")

</div>

> [@Maya](#):
>
> I clicked on „apply“, but the ellipsoid does not show in the CT Images. Is there anything else I have to consider?

Click the “eye” icon next to the “Output Volume” selector to see the created output volume.

> [@Maya](#):
>
> The ellipsoid represents the iceball (per manufacturer manual) and I‘d like to measure the pleural surface, that is in contact with said iceball.

You can perform this computation conveniently in Slicer. For example, you can get the intersection of the pleural surface and the iceball model using “Combine models” module (in Sandbox extension) and then see the surface area in Models module / Information section.

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 10, 2021, 8:07pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/13 "2021-09-10T20:07:39Z")

</div>

Dear Mr. Lasso,

I have clicked the eye icon, but the ellipsoid does not show up in the axial CT image unfortunately. Do I have to determine a certain “fill value”? What is the input, what is the output volume?

Best,  
Maya

---

<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:** [September 10, 2021, 9:56pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/14 "2021-09-10T21:56:52Z")

</div>

> [@Maya](#):
>
> I have clicked the eye icon, but the ellipsoid does not show up in the axial CT image unfortunately

Look at the output after you clicked “Apply”.

> [@Maya](#):
>
> Do I have to determine a certain “fill value”?

It is completely up to you. Use a larger value for brighter filling.

> [@Maya](#):
>
> What is the input, what is the output volume?

It is up to you. You can leave the default setting, which will use the current master volume as input and create a new output volume.

---

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discourse.slicer.org/u/Maya)\
**Post date:** [September 13, 2021, 1:11pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/15 "2021-09-13T13:11:40Z")

</div>

> [@lassoan](#):
>
> You can perform this computation conveniently in Slicer. For example, you can get the intersection of the pleural surface and the iceball model using “Combine models” module (in Sandbox extension) and then see the surface area in Models module / Information section.

Hi Mr. Lasso, I managed to import the model into the axial view! Now I was wondering how I can get the intersection of the pleural surface and the iceball model. I have installed the Sandbox extension and clicked on “Combine models”. The ellipsoid I created is Input model A, how can I define the pleural surface as input model B? Will I have to segment the pleural surface manually or is there another way?

Thank you so much for your help!!

Best,  
Maya

---

<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:** [September 13, 2021, 1:33pm UTC](https://discourse.slicer.org/t/how-can-i-insert-a-custom-spherical-object-into-a-dicom-file/19577/16 "2021-09-13T13:33:06Z")

</div>

> [@Maya](#):
>
> Will I have to segment the pleural surface manually or is there another way?

Is the surface generated by LungCTAnalyzer extension what you need?

[![](https://img.youtube.com/vi/U9PUX-jLF0A/maxresdefault.jpg "Easy creation of lung masks from lung CT in 3D Slicer") ](https://www.youtube.com/watch?v=U9PUX-jLF0A&t=89)
