Class SegmentChannelByObject

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
UnaryWithChannelBase
SegmentChannelByObject
All Implemented Interfaces:
Provider<ObjectCollection>

public class SegmentChannelByObject extends UnaryWithChannelBase
Performs segmentation of a channel using each object in the upstream collection as a mask.

Specifically, a segmentation is performed for each object-mask in the upstream collection, and then the results are combined.

This is useful when a partition (segmentation) of a channel already exists, and a futher segmentation is desired without breaking the boundaries of the initial partition (segmentation).

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    createFromObjects(ObjectCollection objectsSource, Channel channelToSegment)
    Creates objects from a source collection and a channel.
    SegmentChannelIntoObjects
     
    void
    setSegment(SegmentChannelIntoObjects segment)
     

    Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.UnaryWithChannelBase

    createFromObjects, getChannel, setChannel

    Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary

    get, getObjects, setObjects

    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

    • SegmentChannelByObject

      public SegmentChannelByObject()
  • Method Details

    • createFromObjects

      public ObjectCollection createFromObjects(ObjectCollection objectsSource, Channel channelToSegment) throws ProvisionFailedException
      Description copied from class: UnaryWithChannelBase
      Creates objects from a source collection and a channel.
      Specified by:
      createFromObjects in class UnaryWithChannelBase
      Parameters:
      objectsSource - the source object collection
      channelToSegment - the source channel
      Returns:
      the newly created object collection
      Throws:
      ProvisionFailedException - if object creation fails
    • getSegment

      public SegmentChannelIntoObjects getSegment()
    • setSegment

      public void setSegment(SegmentChannelIntoObjects segment)