Package com.xinapse.filter
Enum Class SobelFilter.SobelType
- All Implemented Interfaces:
Serializable
,Comparable<SobelFilter.SobelType>
,Constable
- Enclosing class:
- SobelFilter
An enumeration of the types of Sobel filter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe SobelType for a filter that computes the magnitude of the gradient.The SobelType for a filter that computes the gradient in the along-row direction.The SobelType for a filter that computes the gradient in the along-column direction.The SobelType for a filter that computes the gradient in the through-slice direction. -
Method Summary
Modifier and TypeMethodDescriptionstatic SobelFilter.SobelType
getInstance
(String name) Returns a SolbelType corresponding to the given name.static SobelFilter.SobelType
Returns the enum constant of this class with the specified name.static SobelFilter.SobelType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X
The SobelType for a filter that computes the gradient in the along-row direction. -
Y
The SobelType for a filter that computes the gradient in the along-column direction. -
Z
The SobelType for a filter that computes the gradient in the through-slice direction. -
MAGNITUDE
The SobelType for a filter that computes the magnitude of the gradient.
-
-
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
-
getInstance
Returns a SolbelType corresponding to the given name.- Parameters:
name
- the name of one of the SobelTypes.- Returns:
- a SobelType with the given name, or the default type if the name is not recognised.
-