Class AssignFromChannel
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Copies the pixels from
channelAssignFrom to channel (possibly masking).
The input channel is changed (mutable). The channelAssignFrom is unchanged
(immutable).
This class extends UnaryWithMaskBase to perform pixel assignment from one channel to
another, optionally restricted by a mask.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelcreateFromMaskedChannel(Channel channel, Mask mask) Creates a newChannelfrom the input channel and mask.The channel provider from which pixels will be assigned.voidsetChannelAssignFrom(ChannelProvider channelAssignFrom) The channel provider from which pixels will be assigned.Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.mask.UnaryWithMaskBase
createFromChannel, getMask, setMaskMethods 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
-
AssignFromChannel
public AssignFromChannel()
-
-
Method Details
-
createFromMaskedChannel
protected Channel createFromMaskedChannel(Channel channel, Mask mask) throws ProvisionFailedException Description copied from class:UnaryWithMaskBaseCreates a newChannelfrom the input channel and mask.- Specified by:
createFromMaskedChannelin classUnaryWithMaskBase- Parameters:
channel- the inputChannelmask- theMaskto apply to the channel- Returns:
- a new
Channelcreated from the input channel and mask - Throws:
ProvisionFailedException- if the channel creation fails
-
getChannelAssignFrom
The channel provider from which pixels will be assigned. -
setChannelAssignFrom
The channel provider from which pixels will be assigned.
-