I tried this on a segmented brain mask image (value 0/1):
avwmaths++ segmented.nii segmentedBYTE.nii -odt char
after which segmentedBYTE.nii was zero everywhere, and
avwmaths++ segmented.nii -mul 256 segmentedBYTE.nii -odt char
after which the values that were 1 in segmentedBYTE.nii were 0 outside
the mask and 1 inside teh mask.
In other words: this is a way to make it work, but I'm not sure that
this is correct! How many users expect the values in their images to
change when they do a type conversion?
Best
Alle Meije
|