QMRITools`
QMRITools`

ReplaceSegmentations

ReplaceSegmentations[seg,labs,new]

relapaces the labels labs form the segmentation seg for labels new. Both labs and new should be lists of integers of the same size. If seg contains more labels then given in labs these will be replaced by 0.

Examples