Class SegmentChannel

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
WithChannelBase
SegmentChannel
All Implemented Interfaces:
Provider<ObjectCollection>

public class SegmentChannel extends WithChannelBase
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ObjectCollection
    createFromChannel(Channel channelSource)
    Creates an ObjectCollection from a source Channel.
    MaskProvider
    Optional mask to restrict the segmentation area.
    ObjectCollectionProvider
    Optional provider for seed objects to guide the segmentation.
    SegmentChannelIntoObjects
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SegmentChannel

      public SegmentChannel()
  • Method Details

    • createFromChannel

      protected ObjectCollection createFromChannel(Channel channelSource) throws ProvisionFailedException
      Description copied from class: WithChannelBase
      Creates an ObjectCollection from a source Channel.
      Specified by:
      createFromChannel in class WithChannelBase
      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.