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