# New extension: RawImageGuess - for loading of images from unrecognized file format

**URL:** <https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219>\
**Category:** Support\
**Tags:** feature\
**Created:** [November 19, 2019, 5:16pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219 "2019-11-19T17:16:37Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [November 19, 2019, 5:16pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/1 "2019-11-19T17:16:37Z")

</div>

There are proprietary image file formats the 3D Slicer does not recognize and so refuses to load. @nagy.attila in collaboration with Slicer core developers created an extension that can be used to load data from files that use an unknown format.

[RawImageGuess extension](https://github.com/acetylsalicyl/SlicerRawImageGuess) offers a number of parameters (image header size, dimensions, pixel type, etc.) that users can adjust and see the resulting image in real-time. This makes it possible to guess the image format in a couple of minutes.

See a demo video that shows how to guess format of a Samsung .mvl 3D ultrasound image:

[![](https://img.youtube.com/vi/ajpOQEAyWkA/maxresdefault.jpg "How to load a file of unknown format into 3D Slicer") ](https://www.youtube.com/watch?v=ajpOQEAyWkA)

The extension is available in the extension manager for latest Slicer Preview Release.

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Visconti](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rodrigo_visconti/32/3436_2.png) [@Rodrigo\_Visconti](https://discourse.slicer.org/u/Rodrigo_Visconti)\
**Post date:** [November 23, 2019, 4:22pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/2 "2019-11-23T16:22:18Z")

</div>

It works for GE ultrasound images?

---

<div class="post-metadata">

**Author:** ![nagy.attila](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nagy.attila/32/79295_2.png) [@nagy.attila](https://discourse.slicer.org/u/nagy.attila)\
**Post date:** [November 25, 2019, 9:32am UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/3 "2019-11-25T09:32:43Z")

</div>

The extension should be able to handle any non-compressed raw data.

I have no experience with US images but can’t you export it in a format that Slicer recognizes?

---

<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:** [November 25, 2019, 4:27pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/4 "2019-11-25T16:27:49Z")

</div>

You can also load a few types of GE ultrasound images by using [SlicerHeart extension](https://github.com/SlicerHeart/SlicerHeart#ge).

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 24, 2020, 3:59pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/5 "2020-04-24T15:59:51Z")

</div>

Hi  
I am using Version 4.10.2 and looking for this extension but I am not finding it as per the pic.

 ![No RawImageGuess file](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/3/d3316e9a53bf73272464c10aac9572a233bc0dbf.png)

Please can you assist as I would like to access the extension.

---

<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:** [April 24, 2020, 4:07pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/6 "2020-04-24T16:07:01Z")

</div>

RawImaeGuess module was released after Slicer 4.10.2. You need to use a recent Slicer Preview Release to access it.

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 24, 2020, 4:14pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/7 "2020-04-24T16:14:09Z")

</div>

Thank you, I am installing it now.

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 24, 2020, 5:18pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/8 "2020-04-24T17:18:04Z")

</div>

Hi there,

I have installed the new version and I tried to load the image, I just have a problem that on lower left it does not want to allow me to select Update, its just above the button to Generate NRRD Image Header.

What could be the issue?

I Also note that at the Output volume mine states Create New Volume and with yours it states Volume…

Please can you assist?

 ![Update and Generate](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/e/fe488617654750250c3e863190de1723e06b7e2c.png)

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 24, 2020, 5:18pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/9 "2020-04-24T17:18:26Z")

</div>

![Update and Generate](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/e/fe488617654750250c3e863190de1723e06b7e2c.png)

---

<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:** [April 24, 2020, 6:51pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/10 "2020-04-24T18:51:21Z")

</div>

Sorry, it looks like a minor bug snuck into the module, which can only be seen when you start the module the first time, so we missed it. It is fixed now, so in tomorrow’s Slicer Preview Release it will work well.

You don’t need to wait for the fix, though, just restart Slicer after you set the input file. Next time when you start Slicer the Update button will be enabled. The output volume is created automatically when you first click the Update button.

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 25, 2020, 12:22pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/11 "2020-04-25T12:22:13Z")

</div>

Hi there,

Thank you, it took some time but I found the logic in the method. I could isolate the fetus and get it mostly in 1 frame.

I then opened in Volume rendering to get to the facial features but could not see much.

I then opened in Segment Editor, I added a segment in color green, I selected Threshold as I wanted to get the correct contrast to see the face or body or anything but I think I am missing something.

The goal is to see the fetus in 3D but I am not getting that image after I have isolated.

Please can you advise

 ![Segmnt Editor.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/e/2e50a9ded7e2522b2791e7de366f98d4db53da40.jpeg)

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [April 25, 2020, 12:51pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/12 "2020-04-25T12:51:18Z")

</div>

I got the threshold to display data but I cannot get the face…

Maybe the slices are done wrong or something…

Can I ask if you would be ok with it to get the face for me if I send you the file?

 ![View.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/a/3a129c495c0f77f6e8ae2c278b67e341e5f9690a.jpeg)

---

<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:** [April 25, 2020, 2:22pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/13 "2020-04-25T14:22:42Z")

</div>

You did get the X size right but the Y is not correct yet. As you move the frame slider, the image should not move up/down.

---

<div class="post-metadata">

**Author:** ![finetjul](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/finetjul/32/146_2.png) [@finetjul](https://discourse.slicer.org/u/finetjul)\
**Post date:** [June 23, 2020, 3:49pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/14 "2020-06-23T15:49:44Z")

</div>

This is great, thanks ! 👍

I have a feature request if I may, I would suggest to add support for multiple RAW 2D files that make up a 3D volume. Thanks.

---

<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:** [June 23, 2020, 3:55pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/15 "2020-06-23T15:55:01Z")

</div>

That could be a nice addition. I’m not sure anyone would have time right now to implement this, but you could add it as a feature request here: [https://github.com/acetylsalicyl/SlicerRawImageGuess/issues](https://github.com/acetylsalicyl/SlicerRawImageGuess/issues)

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [July 13, 2020, 7:06pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/16 "2020-07-13T19:06:26Z")

</div>

Hi there, hope you are doing well.

I have been trying my best to get this image of my child of 23 weeks. I just cannot get the 3D image to display the face. I tried to scale the vectors but I am doing something wrong. I recorded the x y z and will attach the file. Could you please please have a look and see if you can get the correct image and inform me what I am doing wrong, its really important to me.  
Please tell me if possible if I can send you the .mlv file via we transfer or any other method.

 ![Pic 1.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/a/dae4d4baf914247b2314f5968097807dcb7c524a.jpeg) ![Pic 2.PNG](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e7ec0f7a8781256cc34917f09fa99c4e8d26c064.jpeg)

---

<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:** [July 13, 2020, 7:15pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/17 "2020-07-13T19:15:55Z")

</div>

To see the face, you need to remove the regions that occlude it (see red marking):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/2/12f7cb739ff3f697424e3ff47eab08eb600babd3.jpeg)

You may want to apply anisotropic filtering on the image before segmentation to reduce noise in the image.

If you want to create a 3D-printable model then I would recommend to remove the volume rendering display.

---

<div class="post-metadata">

**Author:** ![Pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Pieter](https://discourse.slicer.org/u/Pieter)\
**Post date:** [July 14, 2020, 6:36am UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/18 "2020-07-14T06:36:44Z")

</div>

Thank you I will do what you have recommended.

Just for clarity, on the button Display ROI what does it mean (ROI) ?

The X Y Z Spacing means the the size of the model I think, so if the fetus is 31 CM from Cranium to Coccyx then how do I calibrate correctly or at least very close?

---

<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:** [July 14, 2020, 2:04pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/19 "2020-07-14T14:04:26Z")

</div>

ROI = region of interest. It is an Annotation ROI node, which acts as a clipping box.

You can estimate the relative XYZ spacing by looking at the image and adjust the values to that there is no obvious distortion. Then do a linear measurement of a known length and multiply all the spacing values by the ratio of the expected and measured length.

---

<div class="post-metadata">

**Author:** ![Otilio\_Dominguez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/otilio_dominguez/32/9425_2.png) [@Otilio\_Dominguez](https://discourse.slicer.org/u/Otilio_Dominguez)\
**Post date:** [January 5, 2021, 8:07pm UTC](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219/20 "2021-01-05T20:07:26Z")

</div>

Hi Pieter, I’m having trouble to get the software to display the .mvl data with the extension RawImage, could you tell us about this “Logic method” of yours? I’m trying to 3d print my baby’s ultrasound. I’d appreciate it.

[Next page](https://discourse.slicer.org/t/new-extension-rawimageguess-for-loading-of-images-from-unrecognized-file-format/9219.md?page=2)
