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

    Constructors
    Constructor
    Description
     
    FromChannelOrMask(ChannelProvider channel)
    Creates a new instance with a specified channel provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkMisconfigured(BeanInstanceMap defaultInstances)
     
    Stack
    get()
     
    ChannelProvider
    A channel that is provided to the stack.
    Provider<Mask>
    A mask that is provided to the stack.
    boolean
    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.

    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

    • FromChannelOrMask

      public FromChannelOrMask(ChannelProvider channel)
      Creates a new instance with a specified channel provider.
      Parameters:
      channel - the ChannelProvider to use.
    • FromChannelOrMask

      public FromChannelOrMask()
  • 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
    • getChannel

      public ChannelProvider getChannel()
      A channel that is provided to the stack. Either this or mask must be set.
    • setChannel

      public void setChannel(ChannelProvider channel)
      A channel that is provided to the stack. Either this or mask must be set.
    • getMask

      public Provider<Mask> getMask()
      A mask that is provided to the stack. Either this or channel must be set.
    • setMask

      public void setMask(Provider<Mask> mask)
      A mask that is provided to the stack. Either this or channel must 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.