Class FromChannelOrMask
Object
AnchorBean<StackProvider>
InitializableBean<StackProvider, ImageInitialization>
ImageBean<StackProvider>
BeanProviderAsStackBase<StackProvider, Stack>
StackProvider
FromChannelOrMask
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
public class FromChannelOrMask
extends StackProvider
Creates a
Stack from a Channel or Mask (reusing the voxel buffers).- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionFromChannelOrMask(ChannelProvider channel) Creates a new instance with a specified channel provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Stackget()ChannelProviderA channel that is provided to the stack.Provider<Mask> getMask()A mask that is provided to the stack.booleanisRgb()If true, the output contains three channels (the input and two duplicates) instead of one.voidsetChannel(ChannelProvider channel) A channel that is provided to the stack.voidsetMask(Provider<Mask> mask) A mask that is provided to the stack.voidsetRgb(boolean rgb) If true, the output contains three channels (the input and two duplicates) instead of one.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromChannelOrMask
public FromChannelOrMask(ChannelProvider channel) Creates a new instance with a specified channel provider.- Parameters:
channel- theChannelProviderto use.
-
FromChannelOrMask
public FromChannelOrMask()
-
-
Method Details
-
checkMisconfigured
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException - Overrides:
checkMisconfiguredin classAnchorBean<StackProvider>- Throws:
BeanMisconfiguredException
-
get
public Stack get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
getChannel
public ChannelProvider getChannel()A channel that is provided to the stack. Either this ormaskmust be set. -
setChannel
public void setChannel(ChannelProvider channel) A channel that is provided to the stack. Either this ormaskmust be set. -
getMask
public Provider<Mask> getMask()A mask that is provided to the stack. Either this orchannelmust be set. -
setMask
public void setMask(Provider<Mask> mask) A mask that is provided to the stack. Either this orchannelmust be set. -
isRgb
public boolean isRgb()If true, the output contains three channels (the input and two duplicates) instead of one. -
setRgb
public void setRgb(boolean rgb) If true, the output contains three channels (the input and two duplicates) instead of one.
-