# Import bmp data into 3D Slicer

**URL:** <https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058>\
**Category:** Support\
**Created:** [September 2, 2022, 8:50pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058 "2022-09-02T20:50:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trailer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/trailer/32/10730_2.png) [@Trailer](https://discourse.slicer.org/u/Trailer)\
**Post date:** [September 2, 2022, 8:50pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/1 "2022-09-02T20:50:51Z")

</div>

Hello,

I am brand new to slicer 3D. I have a series of .bmp images from a micro-ct from bruker (skyscan).

I am trying to import them into slicer 3D but keep getting the error:

`Error: Loading C:/Users/tommy/Desktop/images/1_image0000_voi__bin_0550.bmp - load failed.`

Cant slicer3D load `.bmp` images? Am I missing something?

I clicked on `Data` → `Choose Files(s) to Add` → loaded a file → ticked `Show Options` → unticked `Single File`

Kind Regards

---

<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:** [September 2, 2022, 10:33pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/2 "2022-09-02T22:33:31Z")

</div>

I’ve just tested this and in the latest Slicer Stable Release (Slicer-5.0.3) and it worked well. Most likely that the issue is that one of the bmp files in the folder have different size or their naming scheme cannot be detected automatically.

To load image stacks, I would recommend to use ImageStacks module in SlicerMorph extension, as it is much faster, more robust, and offers quick preview and cropping.

---

<div class="post-metadata">

**Author:** ![Trailer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/trailer/32/10730_2.png) [@Trailer](https://discourse.slicer.org/u/Trailer)\
**Post date:** [September 3, 2022, 11:07am UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/3 "2022-09-03T11:07:15Z")

</div>

Hello Mr Lasso,

Unfortunatly, I am not able to it. I noticed that I cannot even import 1 image.  
I had to convert the images with imageJ to another format (tiff) and then I could load them into slicer3D.  
Thanks for the help

---

<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:** [September 3, 2022, 12:55pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/4 "2022-09-03T12:55:58Z")

</div>

Can you upload a few example bmp images somewhere and post the link here?

---

<div class="post-metadata">

**Author:** ![Trailer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/trailer/32/10730_2.png) [@Trailer](https://discourse.slicer.org/u/Trailer)\
**Post date:** [September 3, 2022, 4:08pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/5 "2022-09-03T16:08:13Z")

</div>

I will leave one example here: [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-5fB1PlRsIY)

Thanks for the support!

---

<div class="post-metadata">

**Author:** ![ebrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ebrahim/32/13403_2.png) [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Post date:** [September 5, 2022, 2:09am UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/6 "2022-09-05T02:09:21Z")

</div>

I tried this image and also got it to fail to load in Slicer. It seems to be a bit depth issue:

- The bmp @Trailer shared has a bit depth of 1.
- Converting the image to 24 bit or 256 bit BMP made it load into slicer without trouble
- Probably Slicer uses `vtkBMPReader` to read the image, and when I feed the original image into a program that only calls vtkBMPReader I get the error

```nohighlight
2022-09-04 22:02:36.386 ( 0.005s) [DED6B780] vtkBMPReader.cxx:212 ERR| vtkBMPReader (0x55aadaaf69d0): Only BMP depths of (8,24) are supported. Not 1

```

So it’s vtkBMPReader’s limitation, but Slicer is still failing to report this error message properly. In Slicer I just get

```nohighlight
Error: Loading /home/ebrahim/Desktop/image_770.bmp - load failed.

```

rather than the informative VTK error. So the error reporting aspect is a Slicer issue

---

<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:** [September 5, 2022, 12:39pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/7 "2022-09-05T12:39:28Z")

</div>

Slicer uses ITK to load images. You can report this to ITK to see if they are willing to extend ITK to support such bmp images. Since bmp format is rarely used nowadays and binary variant is even more of a niche, they will probably not give high priority for this development, so you might need to wait for some funded project to require this, or contribute developer time or funding yourself. I would recommend exporting in a more commonly used file format, such as png or tiff.

---

<div class="post-metadata">

**Author:** ![Hao\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hao_li/32/3420_2.png) [@Hao\_Li](https://discourse.slicer.org/u/Hao_Li)\
**Post date:** [September 5, 2022, 7:32pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/8 "2022-09-05T19:32:48Z")

</div>

@Trailer Hi, I happen to work with skyscan and 3d slicer. I did a work around and Downloaded a DICOM converter. Then import DICOM. Or use image j, open bmp sequence and save as nrrd file.

---

<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:** [September 6, 2022, 12:39am UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/9 "2022-09-06T00:39:12Z")

</div>

SlicerMorph has a [Skyscan importer module](https://github.com/SlicerMorph/SlicerMorph/tree/master/Docs/SkyscanReconImport) it may worth a try.

@muratmaga do you have any advice on reading such images?

---

<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:** [September 6, 2022, 5:49pm UTC](https://discourse.slicer.org/t/import-bmp-data-into-3d-slicer/25058/10 "2022-09-06T17:49:24Z")

</div>

> [@lassoan](#):
>
> @muratmaga do you have any advice on reading such images?

Unfortunately no. Never worked with binary BMPs before.
