Package deepboof.forward
Class ConfigPadding
java.lang.Object
deepboof.forward.ConfigPadding
- All Implemented Interfaces:
Configuration,Serializable
Configuration for spatial padding.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionType of padding added to input imagesintPadding added to lower extent along x and y axis.intPadding added to upper extent along x and y axis.intPadding added to lower extent along x and y axis.intPadding added to upper extent along x and y axis. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.clone()intgetX0()Padding applied to input data along the lower extent of X axisintgetX1()Padding applied to input data along the upper extent of X axisintgetY0()Padding applies to input data along the lower extent of Y axisintgetY1()Padding applies to input data along the upper extent of Y axis
-
Field Details
-
x0
public int x0Padding added to lower extent along x and y axis. Zero is default -
y0
public int y0Padding added to lower extent along x and y axis. Zero is default -
x1
public int x1Padding added to upper extent along x and y axis. Zero is default -
y1
public int y1Padding added to upper extent along x and y axis. Zero is default -
type
Type of padding added to input images
-
-
Constructor Details
-
ConfigPadding
public ConfigPadding()
-
-
Method Details
-
checkValidity
public void checkValidity()Description copied from interface:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-
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
-