Class ThreeChannels
Object
AnchorBean<StackProvider>
InitializableBean<StackProvider, ImageInitialization>
ImageBean<StackProvider>
BeanProviderAsStackBase<StackProvider, Stack>
StackProvider
ThreeChannels
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
public class ThreeChannels
extends StackProvider
Provides a
Stack by combining up to three channels (red, green, blue) into an RGB image.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) static StackcreateRGBStack(Channel channelRed, Channel channelGreen, Channel channelBlue, VoxelDataType outputType) Creates an RGB stack from up to three channels.Stackget()ChannelProvidergetBlue()Provider for the blue channel.ChannelProvidergetGreen()Provider for the green channel.ChannelProvidergetRed()Provider for the red channel.voidsetBlue(ChannelProvider blue) Provider for the blue channel.voidsetGreen(ChannelProvider green) Provider for the green channel.voidsetRed(ChannelProvider red) Provider for the red channel.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
-
ThreeChannels
public ThreeChannels()
-
-
Method Details
-
checkMisconfigured
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException - Overrides:
checkMisconfiguredin classAnchorBean<StackProvider>- Throws:
BeanMisconfiguredException
-
get
public Stack get() throws ProvisionFailedException- Throws:
ProvisionFailedException
-
createRGBStack
public static Stack createRGBStack(Channel channelRed, Channel channelGreen, Channel channelBlue, VoxelDataType outputType) throws ProvisionFailedException Creates an RGB stack from up to three channels.- Parameters:
channelRed- the red channel, which may be null.channelGreen- the green channel, which may be null.channelBlue- the blue channel, which may be null.outputType- theVoxelDataTypefor the output channels.- Returns:
- a new
Stackcontaining the RGB channels. - Throws:
ProvisionFailedException- if the stack cannot be created.
-
getRed
public ChannelProvider getRed()Provider for the red channel. -
setRed
public void setRed(ChannelProvider red) Provider for the red channel. -
getGreen
public ChannelProvider getGreen()Provider for the green channel. -
setGreen
public void setGreen(ChannelProvider green) Provider for the green channel. -
getBlue
public ChannelProvider getBlue()Provider for the blue channel. -
setBlue
public void setBlue(ChannelProvider blue) Provider for the blue channel.
-