Class SegmentChannelByObject
- All Implemented Interfaces:
Provider<ObjectCollection>
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects(ObjectCollection objectsSource, Channel channelToSegment) Creates objects from a source collection and a channel.voidsetSegment(SegmentChannelIntoObjects segment) Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.UnaryWithChannelBase
createFromObjects, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjectsMethods 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
-
SegmentChannelByObject
public SegmentChannelByObject()
-
-
Method Details
-
createFromObjects
public ObjectCollection createFromObjects(ObjectCollection objectsSource, Channel channelToSegment) throws ProvisionFailedException Description copied from class:UnaryWithChannelBaseCreates objects from a source collection and a channel.- Specified by:
createFromObjectsin classUnaryWithChannelBase- Parameters:
objectsSource- the source object collectionchannelToSegment- the source channel- Returns:
- the newly created object collection
- Throws:
ProvisionFailedException- if object creation fails
-
getSegment
-
setSegment
-