Class MeanThreeChannels
- All Implemented Interfaces:
Provider<Channel>
,ProviderAsStack
Creates a new channel that is the mean of three input channels.
This class extends ChannelProviderTernary
to compute the pixel-wise mean of three
input channels, producing a new channel with unsigned byte voxel type.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderTernary
get, getChannel1, getChannel2, getChannel3, setChannel1, setChannel2, setChannel3
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStack
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
-
Constructor Details
-
MeanThreeChannels
public MeanThreeChannels()
-
-
Method Details
-
process
protected Channel process(Channel channel1, Channel channel2, Channel channel3) throws ProvisionFailedException Description copied from class:ChannelProviderTernary
Creates aChannel
given the two entities provided by the delegates.- Specified by:
process
in classChannelProviderTernary
- Parameters:
channel1
- the entity provided by the first delegate.channel2
- the entity provided by the second delegate.channel3
- the entity provided by the third delegate.- Returns:
- the created
Channel
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-