# use dicom's Physical Delta X as spacing?

**URL:** https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839
**Category:** Beginner Questions
**Created:** [May 5, 2019, 3:01pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839 "2019-05-05T15:01:15Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![hubutui](https://discourse.itk.org/user_avatar/discourse.itk.org/hubutui/32/716_2.png) [@hubutui](https://discourse.itk.org/u/hubutui)
#### Post date: [May 5, 2019, 3:01pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/1 "2019-05-05T15:01:15Z")

</div>

Hi, I’m trying to deal with the ultrasound images. And there is a Physical Delta X attribute (see [here](https://dicom.innolitics.com/ciods/us-image/us-region-calibration/00186011/0018602c)) in the DICOM files. Should it be used as spacing? I read the DICOM files with simpleitk, but the spacing is not the same value as Physical Delta X. Any idea?

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [May 5, 2019, 4:31pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/2 "2019-05-05T16:31:33Z")

</div>

Hie @hubutui,

This is a bit tricky. The Physical Delta X attribute is not necessarily geometric spacing, it can have different meanings based on the image content (it can be in time for Doppler or geometric space for anatomy).

You will probably also have to check [Physical Units X Direction](https://dicom.innolitics.com/ciods/us-image/us-region-calibration/00186011/00186024). Note that in ITK/SimpleITK all physical units are in mm, so if this specifies the units in cm they will be converted to mm when read.

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.itk.org/user_avatar/discourse.itk.org/hubutui/32/716_2.png) [@hubutui](https://discourse.itk.org/u/hubutui)
#### Post date: [May 6, 2019, 2:01am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/3 "2019-05-06T02:01:32Z")

</div>

Yeah, I have check [Physical Units X Direction](https://dicom.innolitics.com/ciods/us-image/us-region-calibration/00186011/00186024) too. Luckily, in my dataset, it’s only related to geometric space for anatomy. And they have the same value in Physical Delta X and Physical Delta Y.  
I wanna calculate the hausdorff distance in a segmentation task. I think simpleitk could help with be aware of the physical unit.

---

<div class="post-metadata">

### Author: ![mihail.isakov](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mihail.isakov](https://discourse.itk.org/u/mihail.isakov)
#### Post date: [May 6, 2019, 2:24am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/5 "2019-05-06T02:24:08Z")

</div>

Sometimes it works, if there is one big tissue region. That approach exists is some scripts, but i wouldn’t recommend generally. Attributes are from [US Region Calibration Module](http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.8.5.5.html),  
there are often many regions and they can overlap, delta value can be zero or negative.  
In fact it is not spacing, it is for measurements in particular region, not whole image.  
For spacing there may be Pixel Aspect Ratio (0028,0034) attribute (some data sets may use Pixel Spacing).

Here are e.g. 3 regions, PW Spectral Doppler region (blue) has different units and deltas for X and Y directions  
 ![20190506-042607](https://discourse.itk.org/uploads/default/original/1X/3860d0d39e9ab8c0a1875ef3f366f5ce2256bfba.jpeg)

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.itk.org/user_avatar/discourse.itk.org/hubutui/32/716_2.png) [@hubutui](https://discourse.itk.org/u/hubutui)
#### Post date: [May 6, 2019, 2:31am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/6 "2019-05-06T02:31:52Z")

</div>

Oh, I see. Luckily, in my task. There is only one region. This assumen also helps to remove unexpected banner regions.

---

<div class="post-metadata">

### Author: ![Sameh\_Samir](https://discourse.itk.org/user_avatar/discourse.itk.org/sameh_samir/32/1251_2.png) [@Sameh\_Samir](https://discourse.itk.org/u/Sameh_Samir)
#### Post date: [February 21, 2020, 10:14pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/7 "2020-02-21T22:14:15Z")

</div>

Good day,  
i have a question  
is this correct (0018,602C) PhysicalDeltaX -0.036248147487640381 according to dicom standards of US image?

can the physicalDelta X (0018,602C) have a negative value in the US image according to dicom standard?

thank you for your reply in advance

---

<div class="post-metadata">

### Author: ![monica\_heddneck](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@monica\_heddneck](https://discourse.itk.org/u/monica_heddneck)
#### Post date: [May 5, 2020, 12:51am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/8 "2020-05-05T00:51:50Z")

</div>

Hello @hubutui!  
I’m curious, did your project work?

I’m also calculating distance, and I also only have these values (Physical Delta) and I don’t have Pixel Spacing. So I’m trying to do the exact same thing as you.

Monica

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.itk.org/user_avatar/discourse.itk.org/hubutui/32/716_2.png) [@hubutui](https://discourse.itk.org/u/hubutui)
#### Post date: [May 5, 2020, 8:33am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/9 "2020-05-05T08:33:01Z")

</div>

sorry, I move on to another project. I’m not sure if this work. I think we could assume pixel spacing = physical delta when only on is available in the metadata.

---

<div class="post-metadata">

### Author: ![monica\_heddneck](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@monica\_heddneck](https://discourse.itk.org/u/monica_heddneck)
#### Post date: [May 5, 2020, 4:27pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/10 "2020-05-05T16:27:53Z")

</div>

Ok. Thanks for your reply! 🙂

---

<div class="post-metadata">

### Author: ![jond01](https://discourse.itk.org/user_avatar/discourse.itk.org/jond01/32/1367_2.png) [@jond01](https://discourse.itk.org/u/jond01)
#### Post date: [May 13, 2020, 9:07am UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/11 "2020-05-13T09:07:13Z")

</div>

Hi @monica_heddneck,  
In my case the `PhysicalDeltaX` is also ignored in itk’s spacing, although the unit is cm (`PhysicalUnitsXDirection == 3`).  
I can access these attributes in python with pydicom:

- `ds.SequenceOfUltrasoundRegions[0].PhysicalDeltaX`
- `ds.SequenceOfUltrasoundRegions[0].PhysicalDeltaY`
- `ds.SequenceOfUltrasoundRegions[0].PhysicalUnitsXDirection`
- `ds.SequenceOfUltrasoundRegions[0].PhysicalUnitsXDirection`

I am not sure what is the expected behavior of itk in this case.

---

<div class="post-metadata">

### Author: ![monica\_heddneck](https://discourse.itk.org/letter_avatar_proxy/v4/letter/m/d78d45/32.png) [@monica\_heddneck](https://discourse.itk.org/u/monica_heddneck)
#### Post date: [May 13, 2020, 7:15pm UTC](https://discourse.itk.org/t/use-dicoms-physical-delta-x-as-spacing/1839/12 "2020-05-13T19:15:33Z")

</div>

It’s definitely an interesting field.  
From what I’ve learned, if a patient’s kidney, heart, etc, is deeper in their torso, this value needs to be adjusted during data capture.
