Class DecomposeIntoConnectedComponents
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
DecomposeIntoConnectedComponents
- All Implemented Interfaces:
Provider<ObjectCollection>
public class DecomposeIntoConnectedComponents
extends ObjectCollectionProviderUnary
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 TypeMethodDescriptionObjectCollectioncreateFromObjects(ObjectCollection objects) booleanif true, uses 8 neighborhood instead of 4, and similarly in 3dvoidsetBigNeighborhood(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, setObjectsMethods 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
-
DecomposeIntoConnectedComponents
public DecomposeIntoConnectedComponents()
-
-
Method Details
-
createFromObjects
public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException - Specified by:
createFromObjectsin classObjectCollectionProviderUnary- Throws:
ProvisionFailedException
-
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
-