Slicer radiomics with vtkSegment

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

You can export a volume from a segmentation as shown in these examples in the script repository. If needed, you can get a SimpleITK image from the exported volume as shown here.