public class Invert extends MaskProviderUnary
By default, this occurs by modifying the associated binary-values (an index) rather than modifying the voxel buffers.
Constructor and Description |
---|
Invert() |
Modifier and Type | Method and Description |
---|---|
Mask |
createFromMask(Mask maskToInvert)
Creates a
Mask given the entity provided by the delegate. |
MaskProvider |
getRestrictTo()
If set, the inversion only occurs on a particular region of the mask, as determined by this
mask
|
boolean |
isForceChangeBytes()
If true, rather than modifying the binary-values (an index) bytes are modified in the buffer
to reflect the existing binary-values.
|
void |
setForceChangeBytes(boolean forceChangeBytes)
If true, rather than modifying the binary-values (an index) bytes are modified in the buffer
to reflect the existing binary-values.
|
void |
setRestrictTo(MaskProvider restrictTo)
If set, the inversion only occurs on a particular region of the mask, as determined by this
mask
|
get, getMask, setMask
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Mask createFromMask(Mask maskToInvert) throws ProvisionFailedException
MaskProviderUnary
Mask
given the entity provided by the delegate.createFromMask
in class MaskProviderUnary
maskToInvert
- the entity provided by the delegate.Mask
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public MaskProvider getRestrictTo()
public void setRestrictTo(MaskProvider restrictTo)
public boolean isForceChangeBytes()
public void setForceChangeBytes(boolean forceChangeBytes)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.