Class SegmentOnMaximumIntensityAndExpandInZ
Perform a segmentation in a MIP instead of z-stacks, and fits the result back into a 3D
segmentation.
The upstream segmentation should return 2D objects as it is executed on the maximum-intensity projection.
A 3D binary-segmentation is applied to the z-stack with segmentStack
to produce a mask
over the z-stack. The the 2D objects are then expanded in the z-dimension to fit this mask.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsegment
(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) Creates anObjectCollection
given the segmentation-results provided by the delegate.void
setSegmentStack
(BinarySegmentation segmentStack) Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjectsUnary
getSegment, segment, setSegment
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
-
SegmentOnMaximumIntensityAndExpandInZ
public SegmentOnMaximumIntensityAndExpandInZ()
-
-
Method Details
-
segment
public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) throws SegmentationFailedException Description copied from class:SegmentChannelIntoObjectsUnary
Creates anObjectCollection
given the segmentation-results provided by the delegate.- Specified by:
segment
in classSegmentChannelIntoObjectsUnary
- Parameters:
channel
- the channel as passed toSegmentChannelIntoObjectsUnary.segment(Channel, Optional, Optional)
.objectMask
- the object-mask as passed toSegmentChannelIntoObjectsUnary.segment(Channel, Optional, Optional)
.seeds
- the seeds as passed toSegmentChannelIntoObjectsUnary.segment(Channel, Optional, Optional)
.upstreamSegmenter
- the delegate segmenter.- Returns:
- the created
ObjectCollection
that is returned by the segmentation. - Throws:
SegmentationFailedException
- if segmentation cannot complete successfully.
-
getSegmentStack
-
setSegmentStack
-