Class FillHoles
- All Implemented Interfaces:
Provider<ObjectCollection>
Fills holes in an object.
Existing object-masks are overwritten (i.e. their memory buffers are replaced with filled-in pixels).
An optional mask which restricts where a fill operation can happen TODO make this an immutable provider that always returns a new object-collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.getMask()
void
setMask
(MaskProvider mask) Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
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
-
FillHoles
public FillHoles()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objects
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getMask
-
setMask
-