Module org.scijava.ops.image
Enum MatrixOrientation2D
- java.lang.Object
-
- java.lang.Enum<MatrixOrientation2D>
-
- org.scijava.ops.image.image.cooccurrenceMatrix.MatrixOrientation2D
-
- All Implemented Interfaces:
Serializable,Comparable<MatrixOrientation2D>,MatrixOrientation
public enum MatrixOrientation2D extends Enum<MatrixOrientation2D> implements MatrixOrientation
Orientation of aCooccurrenceMatrix2D- Author:
- Christian Dietz (University of Konstanz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANTIDIAGONALDIAGONALHORIZONTALVERTICAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixOrientationgetByName(String name)intgetValueAtDim(int d)booleanisCompatible(int numDims)intnumDims()static MatrixOrientation2DvalueOf(String name)Returns the enum constant of this type with the specified name.static MatrixOrientation2D[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIAGONAL
public static final MatrixOrientation2D DIAGONAL
-
ANTIDIAGONAL
public static final MatrixOrientation2D ANTIDIAGONAL
-
HORIZONTAL
public static final MatrixOrientation2D HORIZONTAL
-
VERTICAL
public static final MatrixOrientation2D VERTICAL
-
-
Method Detail
-
values
public static MatrixOrientation2D[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatrixOrientation2D c : MatrixOrientation2D.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatrixOrientation2D valueOf(String name)
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
-
isCompatible
public boolean isCompatible(int numDims)
- Specified by:
isCompatiblein interfaceMatrixOrientation
-
getByName
public MatrixOrientation getByName(String name)
- Specified by:
getByNamein interfaceMatrixOrientation
-
getValueAtDim
public int getValueAtDim(int d)
- Specified by:
getValueAtDimin interfaceMatrixOrientation
-
numDims
public int numDims()
- Specified by:
numDimsin interfaceMatrixOrientation
-
-