Class ObjectFilter
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<ObjectFilter>
org.anchoranalysis.image.bean.object.ObjectFilter
public abstract class ObjectFilter extends ImageBean<ObjectFilter>
Base class for filtering an
ObjectCollection to remove objects according to a criteria.
The filtering criteria is implemented by overriding a method in a sub-class.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ObjectFilter() -
Method Summary
Modifier and Type Method Description abstract org.anchoranalysis.image.voxel.object.ObjectCollectionfilter(org.anchoranalysis.image.voxel.object.ObjectCollection objectsToFilter, Optional<Dimensions> dimensions)Filters anObjectCollectionto remove objects.Methods 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
-
ObjectFilter
public ObjectFilter()
-
-
Method Details
-
filter
public abstract org.anchoranalysis.image.voxel.object.ObjectCollection filter(org.anchoranalysis.image.voxel.object.ObjectCollection objectsToFilter, Optional<Dimensions> dimensions) throws OperationFailedExceptionFilters anObjectCollectionto remove objects.- Parameters:
objectsToFilter- the objects to filter.dimensions- image-dimensions.- Returns:
- a new object-collection containing only the objects that passed the filter.
- Throws:
OperationFailedException- if the operation cannot complete successfully.
-