Package deepboof

Enum PaddingType

All Implemented Interfaces:
Serializable, Comparable<PaddingType>

public enum PaddingType
extends Enum<PaddingType>
Specifies the type of padding applied to a spacial function.
  • Enum Constant Details

    • ZERO

      public static final PaddingType ZERO
      Input is padded with zero valued elements
    • MAX_NEGATIVE

      public static final PaddingType MAX_NEGATIVE
      Input is padded with the most negative possible number
    • MAX_POSITIVE

      public static final PaddingType MAX_POSITIVE
      Input is padded with the most positive possible number
    • EXTEND

      public static final PaddingType EXTEND
      Input is padded with values which extend the nearest element
    • CLIPPED

      public static final PaddingType CLIPPED
      The kernel is cropped and reweighted such that it does not extend outside the image.
  • Method Details

    • values

      public static PaddingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PaddingType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null