Class IfNotEmpty
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
The current
mask
is returned if it's non-empty (at least one on voxel) otherwise
maskElse
is returned.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.predicate.IfPredicateBase
createFromMask, getMaskElse, setMaskElse
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMask
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IfNotEmpty
public IfNotEmpty()
-
-
Method Details
-
predicate
Description copied from class:IfPredicateBase
Evaluates a predicate condition on the input mask.- Specified by:
predicate
in classIfPredicateBase
- Parameters:
mask
- the inputMask
to evaluate- Returns:
- true if the predicate condition is satisfied, false otherwise
-