public class FromChannelOrMask extends StackProvider
Constructor and Description |
---|
FromChannelOrMask() |
FromChannelOrMask(ChannelProvider channel) |
Modifier and Type | Method and Description |
---|---|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
Stack |
get()
Gets or creates an object of type
T . |
ChannelProvider |
getChannel()
A channel that is provided to the stack.
|
Provider<Mask> |
getMask()
A mask that is provided to the stack.
|
boolean |
isRgb()
If true, the output contains three channels (the input and two duplicates) instead of one
|
void |
setChannel(ChannelProvider channel)
A channel that is provided to the stack.
|
void |
setMask(Provider<Mask> mask)
A mask that is provided to the stack.
|
void |
setRgb(boolean rgb)
If true, the output contains three channels (the input and two duplicates) instead of one
|
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public FromChannelOrMask(ChannelProvider channel)
public FromChannelOrMask()
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<StackProvider>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic Stack get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.public ChannelProvider getChannel()
mask
must be set.public void setChannel(ChannelProvider channel)
mask
must be set.public Provider<Mask> getMask()
channel
must be set.public void setMask(Provider<Mask> mask)
channel
must be set.public boolean isRgb()
public void setRgb(boolean rgb)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.