Class AtScale
Perform a segmentation at a different scale, and then fit the results back to the original scale.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe interpolator to use.int
segment
(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds, SegmentChannelIntoObjects upstreamSegmenter) Creates anObjectCollection
given the segmentation-results provided by the delegate.void
setInterpolator
(Interpolator interpolator) The interpolator to use.void
setOutlineWidth
(int outlineWidth) void
setScaleCalculator
(ScaleCalculator scaleCalculator) 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
-
AtScale
public AtScale()
-
-
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.
-
getScaleCalculator
-
setScaleCalculator
-
getOutlineWidth
public int getOutlineWidth() -
setOutlineWidth
public void setOutlineWidth(int outlineWidth) -
getInterpolator
The interpolator to use. -
setInterpolator
The interpolator to use.
-