public abstract class SegmentChannelIntoObjects extends SegmentationBean<SegmentChannelIntoObjects>
Some algorithms can be restricted by an object-mask on the channel.
Some algorithms can be influenced by passing a set of seeds.
Modifier | Constructor and Description |
---|---|
protected |
SegmentChannelIntoObjects() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkUnsupported3D(Channel channel)
Throws an exception if the channel has more than one z-slice, as 3D is unsupported by the
implementation.
|
protected static void |
checkUnsupportedObjectMask(Optional<ObjectMask> objectMask)
Throws an exception if
object is present, as it is unsupported by the implementation. |
protected static void |
checkUnsupportedSeeds(Optional<ObjectCollection> seeds)
Throws an exception if
seeds is present, as it is unsupported by the implementation. |
abstract ObjectCollection |
segment(Channel channel,
Optional<ObjectMask> objectMask,
Optional<ObjectCollection> seeds)
Segments a channel to produce an object-collection.
|
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException
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 static void checkUnsupportedObjectMask(Optional<ObjectMask> objectMask) throws SegmentationFailedException
object
is present, as it is unsupported by the implementation.objectMask
- an optional ObjectMask
.SegmentationFailedException
- if objectMask
is present.protected static void checkUnsupportedSeeds(Optional<ObjectCollection> seeds) throws SegmentationFailedException
seeds
is present, as it is unsupported by the implementation.seeds
- an optional ObjectMask
.SegmentationFailedException
- if seeds
is present.protected static void checkUnsupported3D(Channel channel) throws SegmentationFailedException
channel
- the channel that have multiple z-slices (i.e. is 3D) or a single z-slice (i.e.
is 2D).SegmentationFailedException
- if channel
is 3D.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.