ReplaceSegmentations
ReplaceSegmentations[seg,labs,new]
replaces 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.
QMRITools`
QMRITools`
ReplaceSegmentations
ReplaceSegmentations[seg,labs,new]
replaces 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.