Class DecomposeIntoConnectedComponents
- All Implemented Interfaces:
Provider<ObjectCollection>
Ensures each object in a collection is a connected-component, decomposing it if necessary into
multiple objects.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.boolean
if true, uses 8 neighborhood instead of 4, and similarly in 3dvoid
setBigNeighborhood
(boolean bigNeighborhood) if true, uses 8 neighborhood instead of 4, and similarly in 3dMethods 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
-
DecomposeIntoConnectedComponents
public DecomposeIntoConnectedComponents()
-
-
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.
-
isBigNeighborhood
public boolean isBigNeighborhood()if true, uses 8 neighborhood instead of 4, and similarly in 3d -
setBigNeighborhood
public void setBigNeighborhood(boolean bigNeighborhood) if true, uses 8 neighborhood instead of 4, and similarly in 3d
-