Class AssignFromDictionary
Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
AssignFromDictionary
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
public class AssignFromDictionary
extends ChannelProviderUnary
Assigns a value from a dictionary to all voxels in a channel.
This class extends ChannelProviderUnary to create a new channel by assigning a single
value, retrieved from a dictionary, to all voxels in the input channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChannelcreateFromChannel(Channel channel) DictionaryProviderThe dictionary from which an assignment will occur.getKey()The key of the value in the dictionary that will be assigned.voidsetDictionary(DictionaryProvider dictionary) The dictionary from which an assignment will occur.voidThe key of the value in the dictionary that will be assigned.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
-
AssignFromDictionary
public AssignFromDictionary()
-
-
Method Details
-
createFromChannel
public Channel createFromChannel(Channel channel) throws ProvisionFailedException - Specified by:
createFromChannelin classChannelProviderUnary- Throws:
ProvisionFailedException
-
getDictionary
public DictionaryProvider getDictionary()The dictionary from which an assignment will occur. -
getKey
The key of the value in the dictionary that will be assigned. -
setKey
The key of the value in the dictionary that will be assigned.
-