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 Summary
Enum Constants Enum Constant Description CLIPPEDThe kernel is cropped and reweighted such that it does not extend outside the image.EXTENDInput is padded with values which extend the nearest elementMAX_NEGATIVEInput is padded with the most negative possible numberMAX_POSITIVEInput is padded with the most positive possible numberZEROInput is padded with zero valued elements -
Method Summary
Modifier and Type Method Description static PaddingTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PaddingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ZERO
Input is padded with zero valued elements -
MAX_NEGATIVE
Input is padded with the most negative possible number -
MAX_POSITIVE
Input is padded with the most positive possible number -
EXTEND
Input is padded with values which extend the nearest element -
CLIPPED
The kernel is cropped and reweighted such that it does not extend outside the image.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-