# ERROR: Pixel type: vector of 8-bit signed integer is not supported

**URL:** https://discourse.itk.org/t/error-pixel-type-vector-of-8-bit-signed-integer-is-not-supported/4716
**Category:** Beginner Questions
**Created:** [January 11, 2022, 9:15am UTC](https://discourse.itk.org/t/error-pixel-type-vector-of-8-bit-signed-integer-is-not-supported/4716 "2022-01-11T09:15:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zandarina](https://discourse.itk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zandarina](https://discourse.itk.org/u/zandarina)
#### Post date: [January 11, 2022, 9:15am UTC](https://discourse.itk.org/t/error-pixel-type-vector-of-8-bit-signed-integer-is-not-supported/4716/1 "2022-01-11T09:15:38Z")

</div>

Dear all,

I write because I got this error and i have tried all types but it returns an error with whatever casting I do in the image.

Exception thrown in SimpleITK LabelStatisticsImageFilter\_Execute: d:\a\1\sitk\code\common\include\sitkDualMemberFunctionFactory.hxx:193:  
sitk::ERROR: Pixel type: vector of 8-bit signed integer is not supported in 3D byclass itk::simple::LabelStatisticsImageFilter

The code i use is very simple

```
    img = sitk.GetImageFromArray(np.array(img, dtype=np.int8))   
    msk = sitk.GetImageFromArray(np.array(msk, dtype=np.int8))  

```

Thank you

---

<div class="post-metadata">

### Author: ![Keyn34](https://discourse.itk.org/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@Keyn34](https://discourse.itk.org/u/Keyn34)
#### Post date: [January 11, 2022, 11:04am UTC](https://discourse.itk.org/t/error-pixel-type-vector-of-8-bit-signed-integer-is-not-supported/4716/2 "2022-01-11T11:04:08Z")

</div>

Hello @zandarina

did you try to use `sitk` types like `sitk.sitkInt8`? Or try casting it with a filter like [CastImageFilter](https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1CastImageFilter.html): `sitk.Cast(img,sitk.sitkInt8)`.
