# Voxel extraction , Calculation of GLSZM Failed

**URL:** https://discourse.slicer.org/t/voxel-extraction-calculation-of-glszm-failed/14225
**Category:** Radiomics
**Created:** [October 24, 2020, 5:43pm UTC](https://discourse.slicer.org/t/voxel-extraction-calculation-of-glszm-failed/14225 "2020-10-24T17:43:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alessio\_Romita](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alessio_romita/32/8088_2.png) [@Alessio\_Romita](https://discourse.slicer.org/u/Alessio_Romita)
#### Post date: [October 24, 2020, 5:43pm UTC](https://discourse.slicer.org/t/voxel-extraction-calculation-of-glszm-failed/14225/1 "2020-10-24T17:43:27Z")

</div>

Hi everyone ,  
I’m trying to calculate the value of Glszm feature using voxel based extraction.  
But I got this erro :IndexError: Calculation of GLSZM Failed.  
The setting used are :  
voxelSetting:  
kernelRadius: 2  
maskedKernel: true  
initValue: nan  
voxelBatch: 10000  
This just occurred me with glszm feature, instead with glcm the extraction works.  
Thanks to anyone who will help me .

---

<div class="post-metadata">

### Author: ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)
#### Post date: [November 18, 2020, 6:52pm UTC](https://discourse.slicer.org/t/voxel-extraction-calculation-of-glszm-failed/14225/2 "2020-11-18T18:52:57Z")

</div>

Sorry for the late reply. This was a known issue and has since been [fixed](https://github.com/Radiomics/pyradiomics/pull/594) in the latest PyRadiomics release (3.0.1). Did you try with the latest version?

---

<div class="post-metadata">

### Author: ![Alessio\_Romita](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alessio_romita/32/8088_2.png) [@Alessio\_Romita](https://discourse.slicer.org/u/Alessio_Romita)
#### Post date: [November 20, 2020, 4:32pm UTC](https://discourse.slicer.org/t/voxel-extraction-calculation-of-glszm-failed/14225/3 "2020-11-20T16:32:39Z")

</div>

Hi Joost,  
right now I’m just using the glcm features in voxel based extraction. I remembered that I tried to upload it but was the newest version, and the problem still occurred. I will let you know when I will try again with glszm features.
