Class ThresholdedVolume
Object
AnchorBean<ObjectFilter>
InitializableBean<ObjectFilter, ImageInitialization>
ImageBean<ObjectFilter>
ObjectFilter
ObjectFilterPredicate
ObjectFilterRelation
ThresholdedVolume
Only keeps objects whose feature-value satisfies a condition relative to a threshold.
Specifically, relation(volume,threshold) must be true.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUnitValueVolumeprotected booleanPerforms the matching operation using the resolved relation.voidsetThreshold(UnitValueVolume threshold) protected voidPerforms any necessary initialization before filtering begins.Methods inherited from class org.anchoranalysis.plugin.image.bean.object.filter.ObjectFilterRelation
end, getRelation, match, precondition, setRelationMethods inherited from class org.anchoranalysis.plugin.image.bean.object.filter.ObjectFilterPredicate
filterMethods 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
-
ThresholdedVolume
public ThresholdedVolume()
-
-
Method Details
-
start
protected void start(Optional<Dimensions> dimensions, ObjectCollection objectsToFilter) throws OperationFailedException Description copied from class:ObjectFilterPredicatePerforms any necessary initialization before filtering begins.- Overrides:
startin classObjectFilterRelation- Parameters:
dimensions- optionalDimensionsof the objectsobjectsToFilter- theObjectCollectionto be filtered- Throws:
OperationFailedException- if the initialization fails
-
match
Description copied from class:ObjectFilterRelationPerforms the matching operation using the resolved relation.- Specified by:
matchin classObjectFilterRelation- Parameters:
object- theObjectMaskto be evaluateddim- optionalDimensionsof the objectrelation- the resolvedDoubleBiPredicaterelation- Returns:
- true if the object matches the criteria, false otherwise
-
getThreshold
public UnitValueVolume getThreshold() -
setThreshold
public void setThreshold(UnitValueVolume threshold)
-