Class SegmentChannel
- All Implemented Interfaces:
Provider<ObjectCollection>
Segments a channel into objects using a specified segmentation algorithm.
This class extends WithChannelBase
to provide functionality for segmenting a channel
into objects, optionally using a mask and seed objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectCollection
createFromChannel
(Channel channelSource) Creates anObjectCollection
from a sourceChannel
.getMask()
Optional mask to restrict the segmentation area.Optional provider for seed objects to guide the segmentation.The segmentation algorithm to use.void
setMask
(MaskProvider mask) Optional mask to restrict the segmentation area.void
setObjectsSeeds
(ObjectCollectionProvider objectsSeeds) Optional provider for seed objects to guide the segmentation.void
setSegment
(SegmentChannelIntoObjects segment) The segmentation algorithm to use.Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithChannelBase
get, getChannel, setChannel
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
-
SegmentChannel
public SegmentChannel()
-
-
Method Details
-
createFromChannel
Description copied from class:WithChannelBase
Creates anObjectCollection
from a sourceChannel
.- Specified by:
createFromChannel
in classWithChannelBase
- Parameters:
channelSource
- the source channel- Returns:
- the created object collection
- Throws:
ProvisionFailedException
- if object creation fails
-
getMask
Optional mask to restrict the segmentation area. -
setMask
Optional mask to restrict the segmentation area. -
getSegment
The segmentation algorithm to use. -
setSegment
The segmentation algorithm to use. -
getObjectsSeeds
Optional provider for seed objects to guide the segmentation. -
setObjectsSeeds
Optional provider for seed objects to guide the segmentation.
-