Question about combing different scans according to rules

I have DWI and T2 axial images. I’d like to create a new set of images through combining those. However i’d like the combination to occur according to a set of rules:

if dwi dark + t2 dark -> dark
if dwi dark + t2 bright -> dark
if dwi light + t2 light -> dark
if dwi light + t2 dark -> hot pink!

could anyone point me to some modules or suggest a way to get started on this?


Sounds like you can do that by writing a small python script that applies a formula from the two input volumes to calculate the output value. Then apply a color table to make the bright parts pink. Note that you may need to resample the dwi into the t2 space before doing numpy array options.

1 Like