Class UnaryWithObjectsBase
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
- Direct Known Subclasses:
IdentifyObjects,NormalizeDifferenceToMedian,NormalizeObjectIntensity,ScoreObjects
An abstract base class for creating a channel from an existing channel and a collection of
objects.
This class extends ChannelProviderUnary to provide a framework for creating channels
based on an input channel and a collection of objects. Subclasses must implement the
createFromChannel method.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromChannel(Channel channel) Creates aChannelgiven the entity provided by the delegate.protected abstract ChannelcreateFromChannel(Channel channel, ObjectCollection objects) Creates a new channel from an existing channel and a collection of objects.The provider for the collection of objects to be used in channel creation.voidsetObjects(ObjectCollectionProvider objects) The provider for the collection of objects to be used in channel creation.Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods 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
-
UnaryWithObjectsBase
public UnaryWithObjectsBase()
-
-
Method Details
-
createFromChannel
Description copied from class:ChannelProviderUnaryCreates aChannelgiven the entity provided by the delegate.- Specified by:
createFromChannelin classChannelProviderUnary- Parameters:
channel- the entity provided by the delegate.- Returns:
- the created
Channelthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
createFromChannel
protected abstract Channel createFromChannel(Channel channel, ObjectCollection objects) throws ProvisionFailedException Creates a new channel from an existing channel and a collection of objects.- Parameters:
channel- the inputChannelobjects- theObjectCollectionto be used in channel creation- Returns:
- a new
Channelcreated from the input channel and objects - Throws:
ProvisionFailedException- if the channel creation fails
-
getObjects
The provider for the collection of objects to be used in channel creation. -
setObjects
The provider for the collection of objects to be used in channel creation.
-