# Exporting volumetric ultrasound to DICOM

**URL:** https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265
**Category:** Support
**Created:** [March 2, 2022, 4:41pm UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265 "2022-03-02T16:41:52Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [June 10, 2022, 8:38pm UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/22 "2022-06-10T20:38:08Z")

</div>

To follow up on this, @koeglfryderyk shared a sample phantom scan (can that be shared publicly here in this thread, Fryderyk?), which @David_Clunie reviewed and provided instructions, sample and conversion tool from Pixelmed toolkit. Can you please let us know Fryderyk if this issue can be resolved? It would be great if we could link the public phantom dataset and David’s instructions here for the benefit of the community.

---

<div class="post-metadata">

### Author: ![gordon-n-stevenson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gordon-n-stevenson/32/17356_2.png) [@gordon-n-stevenson](https://discourse.slicer.org/u/gordon-n-stevenson)
#### Post date: [November 16, 2022, 5:36am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/23 "2022-11-16T05:36:52Z")

</div>

Hi all, just picked up this thread while looking into Dicom US options.

I would be interested to know if there was any followup on the use of Pixelmed for this particular use case

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [February 3, 2023, 11:08am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/24 "2023-02-03T11:08:57Z")

</div>

I think this can be resolved, but I’ll write another comment with an explanation of how to do it. Could you just tell me what is the best way of sharing files? (the NRRD has 30MB, the DICOM 100MB)

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [February 3, 2023, 11:18am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/25 "2023-02-03T11:18:55Z")

</div>

Volumetric ultrasound can be exported to DICOM using David Clunie’s tool `com.pixelmed.convert.NRRDToDicom `.

The documentation is [here](http://www.dclunie.com/pixelmed/software/javadoc/com/pixelmed/convert/NRRDToDicom.html)

To use it follow those steps:

1. Make sure you have java installed, if not, install it from [here](https://www.oracle.com/java/technologies/downloads/#jdk19-mac)
2. Download [pixelmed.jar](http://www.dclunie.com/pixelmed/software/20221004_current/index.html)
3. run the following command in your terminal:

```auto
java -cp "path_to_pixelmed.jar" -Djava.awt.headless=true \
	com.pixelmed.convert.NRRDToDicom \
	"path_to_the_input.nrrd" \
	"path_to_the_output.dcm \
	"Patient Name" "Patient ID" "Study ID" "Series Number" "Instance Number"

```

A US phantom can be found [here](https://www.dropbox.com/sh/e8s6yj6bcpamfpg/AAABEXQO6xzncmkWKM80DT5Da?dl=0) (in NRRD and exported to DICOM).

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [February 3, 2023, 11:29am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/26 "2023-02-03T11:29:12Z")

</div>

@koeglfryderyk I’ve just shared a dropbox folder with your gmail email - we can use that for sharing the files. Thank you for getting back to this discussion and answering the questions!

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [February 3, 2023, 11:35am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/27 "2023-02-03T11:35:37Z")

</div>

I still have to figure out how to change the modality from OT to US after the export (David mentioned another one of his [tools](http://www.dclunie.com/pixelmed/software/javadoc/com/pixelmed/apps/SetCharacteristicsFromSummary.html) to do that, but I haven’t yet figured out how to do that. I’ll update the comment with the solution once I know how to do that

---

<div class="post-metadata">

### Author: ![juanmaverde](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/juanmaverde/32/14346_2.png) [@juanmaverde](https://discourse.slicer.org/u/juanmaverde)
#### Post date: [February 3, 2023, 11:58am UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/28 "2023-02-03T11:58:09Z")

</div>

hello all, and really nice to see people investing efforts on this.

We’re working on the space of 3D/4DUS as well, and will be very interesting to have such a converter.

@koeglfryderyk , are you not keeping .mha sequence files?

---

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [February 3, 2023, 12:45pm UTC](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265/29 "2023-02-03T12:45:29Z")

</div>

we don’t have .mha files. We’re working with the Brainlab Curve neuronavigation system which only gives us the reconstructed 3D US volume

[Previous page](https://discourse.slicer.org/t/exporting-volumetric-ultrasound-to-dicom/22265.md?page=1)
