# Feature extraction in 2D image

**URL:** <https://discourse.slicer.org/t/feature-extraction-in-2d-image/23828>\
**Category:** Radiomics\
**Created:** [June 11, 2022, 12:30pm UTC](https://discourse.slicer.org/t/feature-extraction-in-2d-image/23828 "2022-06-11T12:30:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohini\_Gaikar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rohini_gaikar/32/15616_2.png) [@Rohini\_Gaikar](https://discourse.slicer.org/u/Rohini_Gaikar)\
**Post date:** [June 11, 2022, 12:30pm UTC](https://discourse.slicer.org/t/feature-extraction-in-2d-image/23828/1 "2022-06-11T12:30:30Z")

</div>

I have image and mask in float64.  
When I try to cast mask in INT32vit gives me error.  
sitk\_mask = sitk.Cast(sitk\_mask, sitk.sitkInt32)

Error is as:  
sitk::ERROR: Filter does not support casting from casting 64-bit float to 32-bit signed integer

how to correct this? Please help. Thanks.

---

<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:** [June 12, 2022, 1:20am UTC](https://discourse.slicer.org/t/feature-extraction-in-2d-image/23828/2 "2022-06-12T01:20:04Z")

</div>

Have you tried a web search for this error?

Does this help? [SimpleITK not working with any data type, be it 3D or 2D · Issue #592 · SimpleITK/SimpleITK · GitHub](https://github.com/SimpleITK/SimpleITK/issues/592)
