Class SegmentChannelIntoObjectsUnary
- Direct Known Subclasses:
AtScale
,Filter
,ImposeMinima
,SegmentOnMaximumIntensityAndExpandInZ
Implementation of
SegmentChannelIntoObjects
that calls a single delegate SegmentChannelIntoObjects
.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe delegateSegmentChannelIntoObjects
that is called.segment
(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) Segments a channel to produce an object-collection.protected abstract ObjectCollection
segment
(Channel channel, Optional<ObjectMask> object, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) Creates anObjectCollection
given the segmentation-results provided by the delegate.void
setSegment
(SegmentChannelIntoObjects segment) The delegateSegmentChannelIntoObjects
that is called.Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects
checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeeds
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
-
SegmentChannelIntoObjectsUnary
protected SegmentChannelIntoObjectsUnary()
-
-
Method Details
-
segment
public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException Description copied from class:SegmentChannelIntoObjects
Segments a channel to produce an object-collection.- Specified by:
segment
in classSegmentChannelIntoObjects
- Parameters:
channel
- the channel to segmentobjectMask
- 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.
-
segment
protected abstract ObjectCollection segment(Channel channel, Optional<ObjectMask> object, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) throws SegmentationFailedException Creates anObjectCollection
given the segmentation-results provided by the delegate.- Parameters:
channel
- the channel as passed tosegment(Channel, Optional, Optional)
.object
- the object-mask as passed tosegment(Channel, Optional, Optional)
.seeds
- the seeds as passed tosegment(Channel, Optional, Optional)
.upstreamSegmenter
- the delegate segmenter.- Returns:
- the created
ObjectCollection
that is returned by the segmentation. - Throws:
SegmentationFailedException
- if segmentation cannot complete successfully.
-
getSegment
The delegateSegmentChannelIntoObjects
that is called. -
setSegment
The delegateSegmentChannelIntoObjects
that is called.
-