public abstract class SegmentChannelIntoObjectsUnary extends SegmentChannelIntoObjects
SegmentChannelIntoObjects
that calls a single delegate SegmentChannelIntoObjects
.Modifier | Constructor and Description |
---|---|
protected |
SegmentChannelIntoObjectsUnary() |
Modifier and Type | Method and Description |
---|---|
SegmentChannelIntoObjects |
getSegment()
The delegate
SegmentChannelIntoObjects that is called. |
ObjectCollection |
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 an
ObjectCollection given the segmentation-results provided by the delegate. |
void |
setSegment(SegmentChannelIntoObjects segment)
The delegate
SegmentChannelIntoObjects that is called. |
checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeeds
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException
SegmentChannelIntoObjects
segment
in class SegmentChannelIntoObjects
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.SegmentationFailedException
- if anything goes wrong during the segmentation.protected abstract ObjectCollection segment(Channel channel, Optional<ObjectMask> object, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) throws SegmentationFailedException
ObjectCollection
given the segmentation-results provided by the delegate.channel
- the channel as passed to segment(Channel, Optional, Optional)
.object
- the object-mask as passed to segment(Channel, Optional, Optional)
.seeds
- the seeds as passed to segment(Channel, Optional, Optional)
.upstreamSegmenter
- the delegate segmenter.ObjectCollection
that is returned by the segmentation.SegmentationFailedException
- if segmentation cannot complete successfully.public SegmentChannelIntoObjects getSegment()
SegmentChannelIntoObjects
that is called.public void setSegment(SegmentChannelIntoObjects segment)
SegmentChannelIntoObjects
that is called.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.