|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<FilterBoundaryCondition>
com.xinapse.filter.FilterBoundaryCondition
public enum FilterBoundaryCondition
An enumeration of possible boundary conditions when applying a SpatialFilter. The FilterBoundaryCondition determines the behaviour of a SpatialFilter when the kernel does not completely fit within the array of pixel values that is being filtered (i.e., it determines the filtered pixel values that are near the boundary of the image).
The examples given for each boundary condition illustrate the behaviour for 1-D kernel filter with a kernel of width 5. An array of pixel values on the left behaves as the array on the right when that boundary condition is applied.
| Enum Constant Summary | |
|---|---|
NEAREST
Use the value at the boundary: [1 2 3 4 5] → [1 1 1 2 3 4 5 5 5]. |
|
REFLECT
Reflect the array at the boundary: [1 2 3 4 5] → [2 1 1 2 3 4 5 5 4]. |
|
WRAP
Periodically replicate the array: [1 2 3 4 5] → [4 5 1 2 3 4 5 1 2]. |
|
ZERO
Use a zero value: [1 2 3 4 5] → [0 0 1 2 3 4 5 0 0]. |
|
| Method Summary | |
|---|---|
static FilterBoundaryCondition |
getInstance(java.lang.String bc)
Returns the FilterBoundaryCondition corresponding to the supplied string. |
static FilterBoundaryCondition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FilterBoundaryCondition[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FilterBoundaryCondition NEAREST
public static final FilterBoundaryCondition WRAP
public static final FilterBoundaryCondition REFLECT
public static final FilterBoundaryCondition ZERO
| Method Detail |
|---|
public static FilterBoundaryCondition[] values()
for (FilterBoundaryCondition c : FilterBoundaryCondition.values()) System.out.println(c);
public static FilterBoundaryCondition valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static FilterBoundaryCondition getInstance(java.lang.String bc)
throws java.lang.IllegalArgumentException
bc - a java.lang.String which is one of "NEAREST", "WRAP", "REFLECT", or "ZERO".
java.lang.IllegalArgumentException - if bc does not match any of these,
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||