# Mismatched dimensions error

**URL:** https://discourse.itk.org/t/mismatched-dimensions-error/5773
**Category:** Beginner Questions
**Created:** [March 1, 2023, 10:50am UTC](https://discourse.itk.org/t/mismatched-dimensions-error/5773 "2023-03-01T10:50:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xxbilian](https://discourse.itk.org/user_avatar/discourse.itk.org/xxbilian/32/3280_2.png) [@xxbilian](https://discourse.itk.org/u/xxbilian)
#### Post date: [March 1, 2023, 10:50am UTC](https://discourse.itk.org/t/mismatched-dimensions-error/5773/1 "2023-03-01T10:50:53Z")

</div>

Hello,

I have a segmentation image of a main image. however, when I try to open the segmentation image on top of the main image, I received an error, “mismatched dimensions”. the main image dimension is 300, 450, 450, while the segmentation image dimension is 450, 450, 300. I think this is because the name of dimension x, y, z is mismatched. But how could I solve this problem?

Thanks!

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [March 1, 2023, 2:17pm UTC](https://discourse.itk.org/t/mismatched-dimensions-error/5773/2 "2023-03-01T14:17:32Z")

</div>

ITK-SNAP requires segmentation image to match the main image in index space. Slicer does not require that, so I suggest you try it. [Slicer](https://www.slicer.org/), too, is built on top of ITK.
