Package org.eclipse.imagen.media.kernel
Enum Class KernelFactory.ValueType
- All Implemented Interfaces:
Serializable,Comparable<KernelFactory.ValueType>,Constable
- Enclosing class:
- KernelFactory
Constants specifying how kernel element values are calculated.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInside elements have value 1.0; outside 0.0Value isPI/4 * cos(uPI/2)whereuis proportional distance to the key element.Value is the distance to the kernel's key element.Value is3(1 - u^2)/4whereuis proportional distance to the key element.Value is1/sqrt(2PI) e^(-u^2 / 2)whereuis proportional distance to the key element.Value is the inverse distance to the kernel's key element.Also known as biweight.Value is1 - uwhereuis proportional distance to the key element.Also known as tricubic. -
Method Summary
Modifier and TypeMethodDescriptionstatic KernelFactory.ValueTypeReturns the enum constant of this class with the specified name.static KernelFactory.ValueType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
BINARY
Inside elements have value 1.0; outside 0.0 -
COSINE
Value isPI/4 * cos(uPI/2)whereuis proportional distance to the key element. -
DISTANCE
Value is the distance to the kernel's key element. -
EPANECHNIKOV
Value is3(1 - u^2)/4whereuis proportional distance to the key element. -
GAUSSIAN
Value is1/sqrt(2PI) e^(-u^2 / 2)whereuis proportional distance to the key element. -
INVERSE_DISTANCE
Value is the inverse distance to the kernel's key element. -
QUARTIC
Also known as biweight. Value is15/16 (1 - u^2)^2whereuis proportional distance to the key element. -
TRIANGULAR
Value is1 - uwhereuis proportional distance to the key element. -
TRIWEIGHT
Also known as tricubic. Value is35/32 (1 - u^2)^3whereuis proportional distance to the key element.
-
-
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
-