# How can I calculate an area on a CT image. I can calculate volumes (mm^3) but not areas (mm^2)

**URL:** https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549
**Category:** Support
**Created:** [November 28, 2017, 9:09pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549 "2017-11-28T21:09:20Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Ert0](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ert0/32/16021_2.png) [@Ert0](https://discourse.slicer.org/u/Ert0)
#### Post date: [November 28, 2017, 9:09pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/1 "2017-11-28T21:09:20Z")

</div>

Operating system:  
Slicer version:  
Expected behavior:  
Actual behavior:

---

<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: [December 6, 2017, 3:22am UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/2 "2017-12-06T03:22:23Z")

</div>

You can segment a single slice using Segment editor then compute surface using Segment statistics module. You need to divide the reported surface area value by 2, as surface of both sides of the segment are included in the reported number.

---

<div class="post-metadata">

### Author: ![TANG](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@TANG](https://discourse.slicer.org/u/TANG)
#### Post date: [August 18, 2019, 3:21pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/3 "2019-08-18T15:21:11Z")

</div>

A single layer of the same dicom has different surface areas with different layers thickness (1mm,3mm,5mm), resulting in a large difference in surface area between the two.

---

<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: [August 19, 2019, 3:31am UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/4 "2019-08-19T03:31:55Z")

</div>

In recent Slicer Preview Releases, you can draw curves and get their surface area (2D surface, as you would expect - only one side, no thickness).

Select “Closed Curve” from the “Create and place” toolbar button:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/d/0d459c94af6ba0d0054e8f28404d91635078acf7.png)

Left-click on the image to place curve control points and right-click to finish placement:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/f/afbfca82fc601e6495718a98b3c4735dc5f340bd.jpeg)

Measurements on curves are still work in progress, but you can open the Python console (Ctrl-3) and copy-paste the code below to see the surface area:

```python
curves=slicer.util.getNodesByClass("vtkMRMLMarkupsClosedCurveNode")
for curve in curves:
    surfaceAreaMm2 = slicer.modules.markups.logic().GetClosedCurveSurfaceArea(curve)
    print("Curve {0}: surface area = {1:.2f} mm2".format(curve.GetName(), surfaceAreaMm2))

```

---

<div class="post-metadata">

### Author: ![TANG](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@TANG](https://discourse.slicer.org/u/TANG)
#### Post date: [August 21, 2019, 1:34am UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/5 "2019-08-21T01:34:59Z")

</div>

thank you very much. I try 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: [August 21, 2019, 4:03pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/6 "2019-08-21T16:03:21Z")

</div>

@lassoan  
Would this calculation work with a closed curved drawn on a 3D model/segmentation?

---

<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: [August 21, 2019, 4:34pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/7 "2019-08-21T16:34:54Z")

</div>

It computes the area of the closed curve, even if the curve points are not coplanar because they were picked from a model surface. A soap-bubble-like surface is computed for 3D curves and surface of that is reported.

To see that surface, you can use this code snippet:

```python
curve=slicer.util.getNodesByClass("vtkMRMLMarkupsClosedCurveNode")[0]
crossSectionSurface = vtk.vtkPolyData()
areaMm2 = slicer.modules.markups.logic().GetClosedCurveSurfaceArea(curve, crossSectionSurface)
crossSectionSurfaceModel = slicer.modules.models.logic().AddModel(crossSectionSurface)
crossSectionSurfaceModel.SetName("{0} surface".format(curve.GetName()))
crossSectionSurfaceModel.CreateDefaultDisplayNodes()
crossSectionSurfaceModel.GetDisplayNode().BackfaceCullingOff()
crossSectionSurfaceModel.GetDisplayNode().SetColor(curve.GetDisplayNode().GetColor())
crossSectionSurfaceModel.GetDisplayNode().SetOpacity(0.5)
crossSectionSurfaceModel.SetDescription("Area[mm2] = {0:.2f}".format(areaMm2))
print("Curve {0}: surface area = {1:.2f} mm2".format(curve.GetName(), areaMm2))

```

---

<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: [August 21, 2019, 6:14pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/8 "2019-08-21T18:14:55Z")

</div>

Thanks Andras. This is awesome.

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 3, 2020, 8:09pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/9 "2020-08-03T20:09:16Z")

</div>

Sir… i need to calculate visceral and subcutaneous adipose tissue areas in abdominal ct scans…by adjusting HU between -30 to -190… my slicer is not showing those functions u r saying…pluz see this pic…pliz help

 ![1596485293036-493539886](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/4/14199bd7a7f54ed9a00384978071b885a3392cc2.jpeg)

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 3, 2020, 8:11pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/10 "2020-08-03T20:11:54Z")

</div>

I hav been calculating in siemens ct consoles in our institute… it is easy in dat…using ROI function in volume tool…but need to do in laptop as covid is not allowing me access in console

---

<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: [August 3, 2020, 8:51pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/11 "2020-08-03T20:51:27Z")

</div>

You are using an old version. Install the latest preview and you will have the other markup types available to you.

---

<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: [August 3, 2020, 9:13pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/12 "2020-08-03T21:13:17Z")

</div>

@Sunilkumar_Leishangt - can you try the method described in this post? It would be great if you could compare it to results from the CT console and let us know how it goes.

[New module for measuring cross-section area of segments](https://discourse.slicer.org/t/new-module-for-measuring-cross-section-area-of-segments/11293)

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 4, 2020, 5:46am UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/13 "2020-08-04T05:46:17Z")

</div>

Thanx… i shall try n let u know…  
Actually right now m on covid duty in PGIMER, Chandigarh, India… quarantined in a hotel…so the waifi is not good here…may b i shall take some time…thanks again.

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 7, 2020, 10:10pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/14 "2020-08-07T22:10:13Z")

</div>

Sir…can anyone help me on how to adjust HU

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 7, 2020, 10:15pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/15 "2020-08-07T22:15:28Z")

</div>

In the siemens console in my institute… i can adjust the HU in the right pannel from -30 to -120  
Correlating adipose tissue… i just have to use the ROI to demarcate the region inside which i want to calculate the adipose tissue…and then click on evaluate button…it automatically colours and calculates the area of adipose tissue or those from -30 to -190 HU lying inside the area i marked with ROI…Dats it…simple…  
But m puzzled with this

---

<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: [August 7, 2020, 10:49pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/16 "2020-08-07T22:49:42Z")

</div>

You are already familiar with the Siemens console and that software has also much less features, so of course you feel that 3D Slicer is not as simple to use. However, if you spend a little time with Slicer, too, then you’ll find how to do the same things and much more, without any difficulties.

For example, to get area of tissue within a specific HU range in a specified region, you can do the following steps:

- Go to Segment editor module
- Create new segment
- Click Threshold effect, set voxel range to -190 … -30, and click “Use for masking”
- Use any tools (Paint, Draw, Scissors, etc.) to define the region of interest (can be a single slice or you can segment many slices, to get cross-section areas in all those slices at once)
- Go to “Segment cross-section area” module to get cross-section areas as a plot and/or table

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 7, 2020, 11:02pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/17 "2020-08-07T23:02:05Z")

</div>

All these effects are shown blurred…i guess they r not installed…do i hav to download n install them…?

---

<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: [August 7, 2020, 11:20pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/18 "2020-08-07T23:20:55Z")

</div>

> [@Sunilkumar\_Leishangt](#):
>
> All these effects are shown blurred

You need to select a master volume (if not selected automatically) and create a new segment (click “Add” button).

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 7, 2020, 11:51pm UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/19 "2020-08-07T23:51:00Z")

</div>

Can u pliz demonstrate how to calculate area of adipose tissues inside peritonium and that of subcutaneous adipose tissue outside peritonium…

---

<div class="post-metadata">

### Author: ![Sunilkumar\_Leishangt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunilkumar_leishangt/32/3876_2.png) [@Sunilkumar\_Leishangt](https://discourse.slicer.org/u/Sunilkumar_Leishangt)
#### Post date: [August 8, 2020, 12:13am UTC](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549/20 "2020-08-08T00:13:54Z")

</div>

I hav set threshold n drawn the outline but the line disappears soon after completion of drawing even if i press a or enter…  
N i cant find “segment cross section area” anywhere…even in install extensions list…pliz help

[Next page](https://discourse.slicer.org/t/how-can-i-calculate-an-area-on-a-ct-image-i-can-calculate-volumes-mm-3-but-not-areas-mm-2/1549.md?page=2)
