Class ChannelProviderBinary
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<ChannelProvider,Channel>
org.anchoranalysis.image.bean.provider.ChannelProvider
org.anchoranalysis.image.bean.provider.ChannelProviderBinary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
public abstract class ChannelProviderBinary extends ChannelProvider
Implementation of
ChannelProvider that calls two ChannelProviders that
must provide Channels of the same dimensions.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Modifier Constructor Description protectedChannelProviderBinary() -
Method Summary
Modifier and Type Method Description Channelget()ChannelProvidergetChannel1()The first delegateChannelProviderthat is called.ChannelProvidergetChannel2()The second delegateChannelProviderthat is called.protected abstract Channelprocess(Channel channel1, Channel channel2)Creates aChannelgiven the two entities provided by the delegates.voidsetChannel1(ChannelProvider channel1)The first delegateChannelProviderthat is called.voidsetChannel2(ChannelProvider channel2)The second delegateChannelProviderthat is called.Methods 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
-
ChannelProviderBinary
protected ChannelProviderBinary()
-
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
process
protected abstract Channel process(Channel channel1, Channel channel2) throws ProvisionFailedExceptionCreates aChannelgiven the two entities provided by the delegates.- Parameters:
channel1- the entity provided by the first delegate.channel2- the entity provided by the second delegate.- Returns:
- the created
Channelthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
getChannel1
The first delegateChannelProviderthat is called. -
setChannel1
The first delegateChannelProviderthat is called. -
getChannel2
The second delegateChannelProviderthat is called. -
setChannel2
The second delegateChannelProviderthat is called.
-