public class MaskInverter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
invert(Mask mask)
Modifies a mask so that off voxels become on voxels and vice versa.
|
static ObjectMask |
invertObjectDuplicate(ObjectMask object)
Creates a new object-mask where off voxels become on voxels and vice versa.
|
public static ObjectMask invertObjectDuplicate(ObjectMask object)
object
- object to invert (unmodified).public static void invert(Mask mask)
The modification occur inplace, so no new masks are created.
mask
- mask to invert (modified)Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.