Loading of GE/Kretz ultrasound volumes (.vol file)

Hi Andras,

Thanks a lot for your sharing. I had learned a lot from you post.
As you had mentioned in many post that GE may have private fileds in their DICOM ( dcm file ) , indeed!, I had followed your instruction to upload to GE’s 4D view v 10.5 ( per link in your Gitbub post ) , I successfully convert it to 3D Cart , and also set wavelet-compression to " none"
see the link below:

however I still fail to upload to Slicer v4.10 in which I had already included SlicerHeart extension
would you check the file for me and let me know if I had done anything wrong ?

the original dcm is in here:

thank you very much, it will certainly be great if you can guide me on how to load it to slicer successfully.

I remember answering this question somewhere (maybe in another topic or forum) but cannot find it. Anyway, I could load both images without any problems by installing latest Slicer Preview Release (4.11, rev 29009) and SlicerHeart extension, then importing and loading them in DICOM module.

Yes, you had helped me. with the latest verison 4.11.-4-19 works fine.
Thanks again.

1 Like

A very good ITK based example: https://github.com/plooney/kretz.
If you use 4D images, the ‘number of frames’ could be obtained in tag (0xd400, 0x0001).

1 Like

A post was split to a new topic: Segmenting GE Voluson ultrasound image

2 posts were split to a new topic: How to import ultrasound images from Samsung accuvix

Hi,

Thank you Andras for putting all the work into this! Exactly what I was looking for! One question, is the github link for GE’s API files ( https://github.com/GEUltrasound/GE_CVUS_Loader/releases/ ) still in working order? I get a 404 error message but is that due to the fact that GE hasnt accepted me into the Edison Developer Program yet? I havent heard back from GE and just getting a little anxious.

Hello! I have the Cartesian Vol format of a Voluson S8, How can I import it to the 3D Slicer ?because I have not achieved it, I hope you can help me.

Most probably you can use Image3dAPI to load that file. See detailed information here: GitHub - SlicerHeart/SlicerHeart: 3D Slicer extension for cardiac analysis.

If you share an example file then I can verify that SlicerHeart can indeed load it.

Hello, thanks for the answer, I already downloaded the SliceHeart and I still can’t, I share the file for you to verify it, is it necessary to register in the Edison program to be able to achieve it?
https://www.dropbox.com/sh/63ujg7yl1o0pwcq/AADAcYlHdDpFb91CSbYbfnK5a?dl=0

These images can be loaded without Image3dAPI (without joining GE’s developer program), just using SlicerHeart.

After you installed SlicerHeart extension and restarted the application, drag-and-drop the .vol files to the application window and click OK to load them.

After median filtering and adjusting volume rendering transfer functions:

Thanks! It´s beutiful

Of course; https://youtu.be/UHq0uyDvhaA

Hi @lassoan,
I added the above file into my Slicer 3D, but volume rendering doesn’t work. Do you know what happened?

The volume rendering module documentation should help. Drag-and-drop of volumes from the data tree into views requires recent Slicer Preview Release.

Thanks @lassoan! It works!

Now, I would like to convert .vol files into .STL, it’s possible using Slicer 3D? Then, I am going to do segmentation on mesh data.

For 3D printing, you need to segment the image. See video tutorial here: https://youtu.be/UHq0uyDvhaA

In addition to the segmentation tools shown in the video, in recent Slicer Preview Releases you can also do local smoothing using a smoothing brush.

@lassoan Thank you. I have a problem with this file. It is the right format to load into Slicer 3D? I can load this file into Slicer3D, but I don’t see a baby.

Can you please let me know how can I open kretz files using python. I tried the following command:
slicer.util.loadVolume(’/IMG_201_1.vol’)
It does not work.
I also tried to open it using the following script and I could not do that.

  plugin = slicer.modules.dicomPlugins['DicomUltrasoundPlugin']()
  loadables = plugin.examine([['/IMG_201_1.vol']])
  node = plugin.load(loadable)

I got the following error:
E: DcmElement: Unknown Tag & Data (…) larger (…) than remaining bytes in file
Could not load “/IMG_201_1.vol”
Thank you in advance

You can follow this example.

If you are OK with duplicating some loading logic and you are sure that you will only get .vol files then you can copy-paste code from the DICOM ultrasound plugin:

If you just need to work with .vol files that do not embed the volume in a DICOM file then you can load it with a single line of code (set volFileOffset to 0):