I’m trying to generate a synthetic CT from an MRI for use in an MRI-only radiotherapy treatment planning approach (with SlicerRT).
I’ve segmented out bone, air, tissue, and a mock tumour from the MRI - is there a way to convert their voxel values to Hounsfield Units? This is an exploratory approach so I only need those 4 basic features in the sCT; ideally I would like to set the HU for each segment (similar to assigning label values in the ‘Model to LabelMap’ module).
Thanks for the reply, Andras. I’m getting the following error:
Traceback (most recent call last):
File "<console>", line 3, in <module>
TypeError: arrayFromSegmentBinaryLabelmap() takes 2 positional arguments but 3 were given
I’ve tried limiting it to two (of those three) arguments but it errs every time. Any ideas?
Thanks for the help. I’ve downloaded the most recent preview release but I’m now getting a different error - I’ve attached a screenshot in case the problem is my structuring of the nodes/segments.