# Slicer radiomics with vtkSegment

**URL:** https://discourse.slicer.org/t/slicer-radiomics-with-vtksegment/21037
**Category:** Support
**Created:** [December 13, 2021, 8:19pm UTC](https://discourse.slicer.org/t/slicer-radiomics-with-vtksegment/21037 "2021-12-13T20:19:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nello\_Nepi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nello_nepi/32/13493_2.png) [@Nello\_Nepi](https://discourse.slicer.org/u/Nello_Nepi)
#### Post date: [December 13, 2021, 8:19pm UTC](https://discourse.slicer.org/t/slicer-radiomics-with-vtksegment/21037/1 "2021-12-13T20:19:28Z")

</div>

Hi all.  
I am trying to use the radiomics lib but i cannot understand how to invoke the extractor.execute(image, mask) starting from a vtkSegment.  
My problem is that the mask is a segment of a segmentationNode, i cannot convert it to a simpleitk image.

Thanks in advantage

---

<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: [December 14, 2021, 2:19pm UTC](https://discourse.slicer.org/t/slicer-radiomics-with-vtksegment/21037/2 "2021-12-14T14:19:15Z")

</div>

You can export a volume from a segmentation as shown in these [examples in the script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#export-labelmap-node-from-segmentation-node). If needed, you can get a SimpleITK image from the exported volume as shown [here](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#running-an-itk-filter-in-python-using-simpleitk).
