Class CreateNew

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class CreateNew extends FromDimensionsBase
Creates a new channel with all values initialized to a constant (by default zero)
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Channel
    createFromDimensions(Dimensions dimensions)
    Creates a channel from the given dimensions.
    int
     
    boolean
    If True creates an unsigned short-image
    void
    setCreateShort(boolean createShort)
    If True creates an unsigned short-image
    void
    setValue(int value)
     

    Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.FromDimensionsBase

    get, getDimensions, setDimensions

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider

    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

    checkMisconfigured, 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

    • CreateNew

      public CreateNew()
  • Method Details

    • createFromDimensions

      protected Channel createFromDimensions(Dimensions dimensions)
      Description copied from class: FromDimensionsBase
      Creates a channel from the given dimensions.
      Specified by:
      createFromDimensions in class FromDimensionsBase
      Parameters:
      dimensions - the Dimensions to use for creating the channel
      Returns:
      a new Channel with the specified dimensions
    • getValue

      public int getValue()
    • setValue

      public void setValue(int value)
    • isCreateShort

      public boolean isCreateShort()
      If True creates an unsigned short-image
    • setCreateShort

      public void setCreateShort(boolean createShort)
      If True creates an unsigned short-image