Class ConnectedComponentsFromMask
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ConnectedComponentsFromMask
- All Implemented Interfaces:
Provider<ObjectCollection>
public class ConnectedComponentsFromMask
extends ObjectCollectionProvider
Converts a binary-mask into its connected components
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectCollectionget()Provider<Mask> getMask()UnitValueExtentbooleanIf true uses 8 neighborhood rather than 4 neighborhood etc.booleanvoidsetBigNeighborhood(boolean bigNeighborhood) If true uses 8 neighborhood rather than 4 neighborhood etc.voidsetBySlices(boolean bySlices) voidsetMask(Provider<Mask> mask) voidsetMinVolume(UnitValueExtent minVolume) 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
-
ConnectedComponentsFromMask
public ConnectedComponentsFromMask()
-
-
Method Details
-
get
public ObjectCollection get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
getMask
public Provider<Mask> getMask() -
setMask
public void setMask(Provider<Mask> mask) -
getMinVolume
public UnitValueExtent getMinVolume() -
setMinVolume
public void setMinVolume(UnitValueExtent minVolume) -
isBySlices
public boolean isBySlices() -
setBySlices
public void setBySlices(boolean bySlices) -
isBigNeighborhood
public boolean isBigNeighborhood()If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3D -
setBigNeighborhood
public void setBigNeighborhood(boolean bigNeighborhood) If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3D
-