sitk error. Input for "LabelStatisticsImageFilter" does not match the primary input's size

Hello dear members,

I’ve been working with pyradiomics to try to analyse a segment of pericardial fat. I will replicate the code bellow. Unfortunatly I cannot attach the files here as the upload option does not allow for nrrd files to be uploaded.

import os
import SimpleITK
import six
from radiomics import featureextractor

imageName =  '/home/my_name/Desktop/image.nrrd'
maskName = '/home/my_name/Desktop/mask.nrrd'

params = '/home/my_name/pyradiomics/examples/exampleSettings/Params.yaml'

extractor = featureextractor.RadiomicsFeatureExtractor(params)

result = extractor.execute(imageName, maskName)
for key, val in six.iteritems(result):
  print("\t%s: %s" %(key, val))

Once I run the code I get the following error message (see attached image)

Has anyone encountered this problem before? Thank you,

It seems that pyradiomics requires the segmentation mask’s geometry (origin, spacing, axis directions, and extents) to match the analyzed volume’s geometry.