Package boofcv.struct.border
Enum Class BorderType
- All Implemented Interfaces:
Serializable
,Comparable<BorderType>
,java.lang.constant.Constable
How the image border is handled by a convolution filter. Care should be taken when selecting
a border method since some types will not produce meaningful results for all kernel types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe pixels along the image border are extended outwards.The kernel is renormalized to take in account that parts of it are not inside the image.Access to outside the array are reflected back into the array around the closest border.Image borders are not processed and are simply skipped over.Also known as periodic.The image border is set to a fixed value of zero. -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderType
Returns the enum constant of this class with the specified name.static BorderType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIP
Image borders are not processed and are simply skipped over. -
EXTENDED
The pixels along the image border are extended outwards. This is recommended for computing the gradient and many convolution operations. -
NORMALIZED
The kernel is renormalized to take in account that parts of it are not inside the image. Typically only used with kernels that blur the image. -
REFLECT
Access to outside the array are reflected back into the array around the closest border. This is an even symmetric function, e.g. f(-1) = f(1) = 1, f(-2) = f(2) = 2. -
WRAP
Also known as periodic. When a pixel outside of image is accessed it wraps around to the other side of the image as if the image is a loop. Primarily included for historical purposes and because other people use it. In most applications it has the potential of introducing structured noise, which is bad. -
ZERO
The image border is set to a fixed value of zero. Generates harsh edges that can cause artifacts in some applications.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-