itk::ERROR: MeanSampleFilter: Total frequency was too close to zero

You could construct image’s index to physical transform, and set it to your ellipse spatial object.