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 ObjectCollectioncreateFromChannel(Channel channelSource) Creates anObjectCollectionfrom a sourceChannel.getMask()Optional mask to restrict the segmentation area.Optional provider for seed objects to guide the segmentation.The segmentation algorithm to use.voidsetMask(MaskProvider mask) Optional mask to restrict the segmentation area.voidsetObjectsSeeds(ObjectCollectionProvider objectsSeeds) Optional provider for seed objects to guide the segmentation.voidsetSegment(SegmentChannelIntoObjects segment) The segmentation algorithm to use.Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithChannelBase
get, getChannel, setChannelMethods 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
-
SegmentChannel
public SegmentChannel()
-
-
Method Details
-
createFromChannel
Description copied from class:WithChannelBaseCreates anObjectCollectionfrom a sourceChannel.- Specified by:
createFromChannelin 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.
-