Class FloodFillEachIntensityLevel
Creates an object for each separate intensity-value (beginning at 
startingColor) by
 flood-filling.
 This algorithm only works with 2D images.
- Author:
- Owen Feehan
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintOnly objects whose bounding-box volume is greater or equal to this threshold are included.intThe first intensity-value to consider as a valid object (e.g. usually 0 is ignored as background).segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) Segments a channel to produce an object-collection.voidsetMinimumBoundingBoxVolume(int minimumBoundingBoxVolume) Only objects whose bounding-box volume is greater or equal to this threshold are included.voidsetStartingIntensity(int startingIntensity) The first intensity-value to consider as a valid object (e.g. usually 0 is ignored as background).Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjectscheckUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeedsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBeangetInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBeancheckMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
- 
Constructor Details- 
FloodFillEachIntensityLevelpublic FloodFillEachIntensityLevel()
 
- 
- 
Method Details- 
segmentpublic ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException Description copied from class:SegmentChannelIntoObjectsSegments a channel to produce an object-collection.- Specified by:
- segmentin class- SegmentChannelIntoObjects
- Parameters:
- channel- the channel to segment
- objectMask- an object-mask that can restrict which areas of the channel are considered.
- seeds- seeds that can be used to determine starting-points for segmentation regions.
- Returns:
- a newly created collection of objects for each segment. The created objects will always exist inside the channel's extent.
- Throws:
- SegmentationFailedException- if anything goes wrong during the segmentation.
 
- 
getMinimumBoundingBoxVolumepublic int getMinimumBoundingBoxVolume()Only objects whose bounding-box volume is greater or equal to this threshold are included. By default, all objects are included.
- 
setMinimumBoundingBoxVolumepublic void setMinimumBoundingBoxVolume(int minimumBoundingBoxVolume) Only objects whose bounding-box volume is greater or equal to this threshold are included. By default, all objects are included.
- 
getStartingIntensitypublic int getStartingIntensity()The first intensity-value to consider as a valid object (e.g. usually 0 is ignored as background).
- 
setStartingIntensitypublic void setStartingIntensity(int startingIntensity) The first intensity-value to consider as a valid object (e.g. usually 0 is ignored as background).
 
-