# EM Segmenter: input type mismatch

**URL:** <https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376>\
**Category:** Support\
**Tags:** emsegmenter\
**Created:** [May 24, 2017, 4:57pm UTC](https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376 "2017-05-24T16:57:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nshusharina](https://avatars.discourse-cdn.com/v4/letter/n/ee59a6/32.png) [@nshusharina](https://discourse.slicer.org/u/nshusharina)\
**Post date:** [May 24, 2017, 4:57pm UTC](https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376/1 "2017-05-24T16:57:19Z")

</div>

Operating system: Windows  
Slicer version: 3.6.3  
Expected behavior:  
Actual behavior: Input Image Error

Hello.  
I am getting “Scalar type mismatch for input images” error in EM Segmenter. How do I match the types?  
Thank you,  
Nadya

---

<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:** [May 24, 2017, 5:11pm UTC](https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376/2 "2017-05-24T17:11:56Z")

</div>

Sounds like you may need to cast the volumes to the same datatype.

---

<div class="post-metadata">

**Author:** ![Byounghoon\_Kim](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@Byounghoon\_Kim](https://discourse.slicer.org/u/Byounghoon_Kim)\
**Post date:** [February 6, 2018, 6:33pm UTC](https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376/3 "2018-02-06T18:33:28Z")

</div>

Hi Steve,

Could you give us little more detail about casting datatype?

Thanks.

---

<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:** [February 6, 2018, 8:58pm UTC](https://discourse.slicer.org/t/em-segmenter-input-type-mismatch/376/4 "2018-02-06T20:58:42Z")

</div>

Hi -

You can look in the Volumes module to see what datatypes the images are. Then you can use the Cast Scalar Volume module so that your input matches the atlas (I think the EMSegment requires type short but you may need to do some experiments).

[https://www.slicer.org/wiki/Documentation/4.8/Modules/CastScalarVolume](https://www.slicer.org/wiki/Documentation/4.8/Modules/CastScalarVolume)

-Steve
