public enum Connectivity3D extends Enum<Connectivity3D>
Enum Constant and Description |
---|
C26
The 26-connectivity, that considers all neighbors in three dimensions
|
C6
The 6-connectivity, that considers orthogonal neighbors in three dimensions
|
Modifier and Type | Method and Description |
---|---|
static Connectivity3D |
fromLabel(String label)
Determines the connectivity type from its label.
|
static String[] |
getAllLabels()
Returns all the labels for this enumeration.
|
int |
getValue()
Returns the integer value associated to this connectivity.
|
String |
toString() |
static Connectivity3D |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Connectivity3D[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Connectivity3D C6
public static final Connectivity3D C26
public static Connectivity3D[] values()
for (Connectivity3D c : Connectivity3D.values()) System.out.println(c);
public static Connectivity3D valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Connectivity3D>
public int getValue()
public static String[] getAllLabels()
public static Connectivity3D fromLabel(String label)
label
- the name of the connectivityIllegalArgumentException
- if label is not recognized.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.