public class SegmentChannelByObject extends UnaryWithChannelBase
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).
Constructor and Description |
---|
SegmentChannelByObject() |
Modifier and Type | Method and Description |
---|---|
ObjectCollection |
createFromObjects(ObjectCollection objectsSource,
Channel channelToSegment) |
SegmentChannelIntoObjects |
getSegment() |
void |
setSegment(SegmentChannelIntoObjects segment) |
createFromObjects, getChannel, setChannel
get, getObjects, setObjects
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ObjectCollection createFromObjects(ObjectCollection objectsSource, Channel channelToSegment) throws ProvisionFailedException
createFromObjects
in class UnaryWithChannelBase
ProvisionFailedException
public SegmentChannelIntoObjects getSegment()
public void setSegment(SegmentChannelIntoObjects segment)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.