Class SegmentChannelIntoObjectsUnary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.segment.SegmentationBean<SegmentChannelIntoObjects>
org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects
org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjectsUnary
public abstract class SegmentChannelIntoObjectsUnary extends SegmentChannelIntoObjects
Implementation of
SegmentChannelIntoObjects that calls a single delegate SegmentChannelIntoObjects.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedSegmentChannelIntoObjectsUnary() -
Method Summary
Modifier and Type Method Description SegmentChannelIntoObjectsgetSegment()The delegateSegmentChannelIntoObjectsthat is called.org.anchoranalysis.image.voxel.object.ObjectCollectionsegment(Channel channel, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> objectMask, Optional<org.anchoranalysis.image.voxel.object.ObjectCollection> seeds)Segments a channel to produce an object-collection.protected abstract org.anchoranalysis.image.voxel.object.ObjectCollectionsegment(Channel channel, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> object, Optional<org.anchoranalysis.image.voxel.object.ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter)Creates anObjectCollectiongiven the segmentation-results provided by the delegate.voidsetSegment(SegmentChannelIntoObjects segment)The delegateSegmentChannelIntoObjectsthat is called.Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects
checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeedsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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 org.anchoranalysis.image.voxel.object.ObjectCollection segment(Channel channel, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> objectMask, Optional<org.anchoranalysis.image.voxel.object.ObjectCollection> seeds) throws SegmentationFailedExceptionDescription copied from class:SegmentChannelIntoObjectsSegments a channel to produce an object-collection.- Specified by:
segmentin 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 org.anchoranalysis.image.voxel.object.ObjectCollection segment(Channel channel, Optional<org.anchoranalysis.image.voxel.object.ObjectMask> object, Optional<org.anchoranalysis.image.voxel.object.ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) throws SegmentationFailedExceptionCreates anObjectCollectiongiven 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
ObjectCollectionthat is returned by the segmentation. - Throws:
SegmentationFailedException- if segmentation cannot complete successfully.
-
getSegment
The delegateSegmentChannelIntoObjectsthat is called. -
setSegment
The delegateSegmentChannelIntoObjectsthat is called.
-