Class SegmentChannel
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
WithChannelBase
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.MaskProvidergetMask()Optional mask to restrict the segmentation area.ObjectCollectionProviderOptional provider for seed objects to guide the segmentation.SegmentChannelIntoObjectsThe 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
protected ObjectCollection createFromChannel(Channel channelSource) throws ProvisionFailedException 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
public MaskProvider getMask()Optional mask to restrict the segmentation area. -
setMask
public void setMask(MaskProvider mask) Optional mask to restrict the segmentation area. -
getSegment
public SegmentChannelIntoObjects getSegment()The segmentation algorithm to use. -
setSegment
public void setSegment(SegmentChannelIntoObjects segment) The segmentation algorithm to use. -
getObjectsSeeds
public ObjectCollectionProvider getObjectsSeeds()Optional provider for seed objects to guide the segmentation. -
setObjectsSeeds
public void setObjectsSeeds(ObjectCollectionProvider objectsSeeds) Optional provider for seed objects to guide the segmentation.
-