Class IfObjectFilter
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
MaskProviderUnary
IfPredicateBase
IfObjectFilter
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
The current
mask is returned if the mask (treated as an object) passed an object-filter,
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, setMaskElseMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMaskMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
IfObjectFilter
public IfObjectFilter()
-
-
Method Details
-
predicate
protected boolean predicate(Mask mask) throws ProvisionFailedException Description copied from class:IfPredicateBaseEvaluates a predicate condition on the input mask.- Specified by:
predicatein classIfPredicateBase- Parameters:
mask- the inputMaskto evaluate- Returns:
- true if the predicate condition is satisfied, false otherwise
- Throws:
ProvisionFailedException- if there's an error during predicate evaluation
-
getFilter
public ObjectFilter getFilter() -
setFilter
public void setFilter(ObjectFilter filter)
-