Class ConfigPadding

java.lang.Object
deepboof.forward.ConfigPadding
All Implemented Interfaces:
Configuration, Serializable

public class ConfigPadding extends Object implements Configuration
Configuration for spatial padding.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Type of padding added to input images
    int
    Padding added to lower extent along x and y axis.
    int
    Padding added to upper extent along x and y axis.
    int
    Padding added to lower extent along x and y axis.
    int
    Padding added to upper extent along x and y axis.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks to see if the configuration is valid.
     
    int
    Padding applied to input data along the lower extent of X axis
    int
    Padding applied to input data along the upper extent of X axis
    int
    Padding applies to input data along the lower extent of Y axis
    int
    Padding applies to input data along the upper extent of Y axis

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x0

      public int x0
      Padding added to lower extent along x and y axis. Zero is default
    • y0

      public int y0
      Padding added to lower extent along x and y axis. Zero is default
    • x1

      public int x1
      Padding added to upper extent along x and y axis. Zero is default
    • y1

      public int y1
      Padding added to upper extent along x and y axis. Zero is default
    • type

      public PaddingType type
      Type of padding added to input images
  • Constructor Details

    • ConfigPadding

      public ConfigPadding()
  • Method Details

    • checkValidity

      public void checkValidity()
      Description copied from interface: Configuration
      Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
      Specified by:
      checkValidity in interface Configuration
    • getX0

      public int getX0()
      Padding applied to input data along the lower extent of X axis
      Returns:
      padding in pixels
    • getY0

      public int getY0()
      Padding applies to input data along the lower extent of Y axis
      Returns:
      padding in pixels
    • getX1

      public int getX1()
      Padding applied to input data along the upper extent of X axis
      Returns:
      padding in pixels
    • getY1

      public int getY1()
      Padding applies to input data along the upper extent of Y axis
      Returns:
      padding in pixels
    • clone

      public ConfigPadding clone()
      Overrides:
      clone in class Object