Class ConnectedComponentsFromMask
Object
- All Implemented Interfaces:
Provider<ObjectCollection>
Converts a binary-mask into its connected components
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets or creates an object of typeT
.getMask()
boolean
If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3Dboolean
void
setBigNeighborhood
(boolean bigNeighborhood) If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3Dvoid
setBySlices
(boolean bySlices) void
void
setMinVolume
(UnitValueExtent minVolume) 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
-
ConnectedComponentsFromMask
public ConnectedComponentsFromMask()
-
-
Method Details
-
get
Description copied from interface:Provider
Gets or creates an object of typeT
.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException
- if the object cannot be returned.
-
getMask
-
setMask
-
getMinVolume
-
setMinVolume
-
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
-