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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkMisconfigured(BeanInstanceMap defaultInstances)
     
    static Stack
    createRGBStack(Channel channelRed, Channel channelGreen, Channel channelBlue, VoxelDataType outputType)
    Creates an RGB stack from up to three channels.
    Stack
    get()
     
    ChannelProvider
    Provider for the blue channel.
    ChannelProvider
    Provider for the green channel.
    ChannelProvider
    Provider for the red channel.
    void
    setBlue(ChannelProvider blue)
    Provider for the blue channel.
    void
    setGreen(ChannelProvider green)
    Provider for the green channel.
    void
    setRed(ChannelProvider red)
    Provider for the red channel.

    Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider

    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

    describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ThreeChannels

      public ThreeChannels()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Overrides:
      checkMisconfigured in class AnchorBean<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 - the VoxelDataType for the output channels.
      Returns:
      a new Stack containing 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.