# How to know the total pixel counts?

**URL:** <https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, dicom, 3d-model\
**Created:** [May 4, 2023, 9:21am UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284 "2023-05-04T09:21:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [May 4, 2023, 9:21am UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/1 "2023-05-04T09:21:54Z")

</div>

Dear Sir,

I did the VOI (Volume of interest) on my image. But the total counts of pixel in the VOI do not appear in the table after I did the quantification as picture attached

 ![VOI](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/7/970cb58b4cca29a981259f2f5d13b61ef067e31a.jpeg)  
.

Anyone can help me. the data set is attached [000000.dcm - Google Drive](https://drive.google.com/file/d/1vHGkqyk6V1-2-8StsyJs8mec96plxYpl/view?usp=share_link) .

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 4, 2023, 12:23pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/2 "2023-05-04T12:23:13Z")

</div>

Enable “Labelmap statistics”, Go “Options”, check “Voxel count”

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/f/8f1240674e25a39468f132547c628a89426e2405.png)

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [May 4, 2023, 1:46pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/3 "2023-05-04T13:46:23Z")

</div>

I was. But still not appear in table

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 4, 2023, 1:55pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/4 "2023-05-04T13:55:26Z")

</div>

Did you select the scalar volume?

All voxel count is working here.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/5740edaf388da4b9ff3dbfbeff9eb6a5367336eb.png)

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [May 4, 2023, 2:02pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/5 "2023-05-04T14:02:47Z")

</div>

then where are your total counts in voi?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 4, 2023, 3:31pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/6 "2023-05-04T15:31:37Z")

</div>

The count is given as 7760, referring to Segment 1.

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [May 4, 2023, 3:39pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/7 "2023-05-04T15:39:02Z")

</div>

that one is a number of voxels. **not total counts of voxel**

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 4, 2023, 3:46pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/8 "2023-05-04T15:46:02Z")

</div>

You are wanting to sum the Hounsfield values of all the voxels of the scalar volume within the segmentation? How do you plan to use that statistic? SegmentStatistics already provides mean, median, min, max type values. Mean \* number of voxels should give you your total sum of the corresponding Hounsfield values.

---

<div class="post-metadata">

**Author:** ![akmal871026](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akmal871026/32/11642_2.png) [@akmal871026](https://discourse.slicer.org/u/akmal871026)\
**Post date:** [May 4, 2023, 4:00pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/9 "2023-05-04T16:00:59Z")

</div>

I see…then total pixel counts is mean\*total voxel

---

<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:** [May 4, 2023, 5:23pm UTC](https://discourse.slicer.org/t/how-to-know-the-total-pixel-counts/29284/10 "2023-05-04T17:23:03Z")

</div>

> [@akmal871026](#):
>
> pixel counts

in 3D there is no pixel (picture elements), the correct term is voxel (volume element).
