Class ConfigPadding

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

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

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

    Constructors 
    Constructor Description
    ConfigPadding()  
  • Method Summary

    Modifier and Type Method Description
    void checkValidity()
    Checks to see if the configuration is valid.
    ConfigPadding clone()  
    int getX0()
    Padding applied to input data along the lower extent of X axis
    int getX1()
    Padding applied to input data along the upper extent of X axis
    int getY0()
    Padding applies to input data along the lower extent of Y axis
    int getY1()
    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

  • 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 java.lang.Object