public class AndObjectsWithMasks extends ObjectCollectionProviderUnary
Note the masking overwrites the current objects in situ, so it is often recommended to a duplicate operation beforehand to preserve the existing objects.
This is equivalent to applying a logical AND operation on each voxel for the binary-mask AND object-mask.
Constructor and Description |
---|
AndObjectsWithMasks() |
Modifier and Type | Method and Description |
---|---|
ObjectCollection |
createFromObjects(ObjectCollection objects)
Creates a
ObjectCollection given the entity provided by the delegate. |
MaskProvider |
getMask() |
void |
setMask(MaskProvider mask) |
get, getObjects, setObjects
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
ObjectCollectionProviderUnary
ObjectCollection
given the entity provided by the delegate.createFromObjects
in class ObjectCollectionProviderUnary
objects
- the entity provided by the delegate.ObjectCollection
that is returned by the provider.ProvisionFailedException
- if the provider cannot complete successfully.public MaskProvider getMask()
public void setMask(MaskProvider mask)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.