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 Channel
createFromMaskedChannel
(Channel channel, Mask mask) Creates a newChannel
from the input channel and mask.The channel provider from which pixels will be assigned.void
setChannelAssignFrom
(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, setMask
Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannel
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
-
AssignFromChannel
public AssignFromChannel()
-
-
Method Details
-
createFromMaskedChannel
protected Channel createFromMaskedChannel(Channel channel, Mask mask) throws ProvisionFailedException Description copied from class:UnaryWithMaskBase
Creates a newChannel
from the input channel and mask.- Specified by:
createFromMaskedChannel
in classUnaryWithMaskBase
- Parameters:
channel
- the inputChannel
mask
- theMask
to apply to the channel- Returns:
- a new
Channel
created 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.
-