# missing slices when loading dicom data

**URL:** https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992
**Category:** Support
**Tags:** dicom
**Created:** [January 26, 2024, 3:22pm UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992 "2024-01-26T15:22:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![zkb](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@zkb](https://discourse.slicer.org/u/zkb)
#### Post date: [January 26, 2024, 3:22pm UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/1 "2024-01-26T15:22:04Z")

</div>

Operating system: windows  
Slicer version:4.10.2  
Expected behavior: I have a dicom folder which includes 50 dicom files, which means that this image include 50 slices or say the aixal images are 50 in total. However, after loading it, it only remains 42 slices. I don’t know why but when I try loading it by other software or viewers, it is actually 50 slices.  
Actual behavior:

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [January 26, 2024, 5:45pm UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/2 "2024-01-26T17:45:53Z")

</div>

Probably there are slices at duplicate positions or some similar issue. Check the error log and also look at the dicom troubleshooting section of the manual. If you can share data that replicates the issue then someone may be able to help you more.

Also try the latest version, 5.6.1

---

<div class="post-metadata">

### Author: ![zkb](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@zkb](https://discourse.slicer.org/u/zkb)
#### Post date: [January 27, 2024, 4:36am UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/5 "2024-01-27T04:36:25Z")

</div>

I have updated to the newest version. And I have seen the error log. But I don’t know how to solve this problem. Could you help me have a look?

 ![a2c6db3cd28da0dccde474dcc9fae51](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/e/1e03a78858e9d183ea419bb360485aaf3d29970c.png)  
 ![c99605d562f56224441751661e83a8b](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/8/2864cf67c60ddcd57c4a564cf66151162c197e0d.png)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [January 28, 2024, 10:01am UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/6 "2024-01-28T10:01:44Z")

</div>

The message is saying that there is non-uniform sampling in the original data, so probably more than one of the original 50 slices is at the same location in space, so only one of them is used to create the 3D volume. So the volume has fewer Slices. You will need to assess whether the volume is correct and use caution when doing any geometric calculations like measuring distances or volumes.

---

<div class="post-metadata">

### Author: ![zkb](https://avatars.discourse-cdn.com/v4/letter/z/a698b9/32.png) [@zkb](https://discourse.slicer.org/u/zkb)
#### Post date: [January 28, 2024, 10:25am UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/7 "2024-01-28T10:25:42Z")

</div>

Sure. Thank you very much for your replying. But the biggest problem now is that the volume it created missed many slices. Is there any way that I can ignore this warning and just load all the slices? Like in the figure, I miss two slices so the volume it create only contains 48 slices but before loading it shows it has 50 slices.

 ![70d6bcfe900f8e1ade239ffa04d1e8c](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/0/30657c4381ae7636efa7040cfb77179cc2b50c86.png)

 ![fdd701c1d9bcdd8c071b7bc927c7565](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/4/e4693239f8c2b54777cedd27c1ee2abdd9178ce0.png)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [January 28, 2024, 2:10pm UTC](https://discourse.slicer.org/t/missing-slices-when-loading-dicom-data/33992/9 "2024-01-28T14:10:07Z")

</div>

Since the data files themselves have questionable metadata it’s probably better for you to patch them, for example with a mall python script, so that they form the kind of coherent volume that you expect. As things are now there’s no way for slicer to treat them as a volume.
