public static enum Strel3D.Shape extends Enum<Strel3D.Shape>
| Enum Constant and Description | 
|---|
BALL
Ball of a given radius 
 | 
CUBE
Cube of a given side 
 | 
DIAMOND
Diamond of a given diameter 
 | 
LINE_DIAG_DOWN
Diagonal line of a given length 
 | 
LINE_DIAG_UP
Diagonal line of a given length 
 | 
LINE_HORIZ
Horizontal line of a given length 
 | 
LINE_VERT
Vertical line of a given length 
 | 
LINE_Z
3D line in the Z direction 
 | 
OCTAGON
Octagon of a given diameter 
 | 
SQUARE
Square of a given side 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Strel3D | 
fromDiameter(int diam)
Creates a structuring element of the given type and with the
 specified diameter. 
 | 
Strel3D | 
fromDiameterList(int diamX,
                int diamY,
                int diamZ)
Creates a structuring element of the given type and with the
 specified diameter. 
 | 
static Strel3D.Shape | 
fromLabel(String label)
Determines the strel shape from its label. 
 | 
Strel3D | 
fromRadius(int radius)
Creates a structuring element of the given type and with the
 specified radius. 
 | 
Strel3D | 
fromRadiusList(int radiusX,
              int radiusY,
              int radiusZ)
Creates a structuring element of the given type and with the
 specified radius for each dimension. 
 | 
static String[] | 
getAllLabels()
Returns a set of labels for most of classical structuring elements. 
 | 
String | 
toString()
Returns the label associated to this shape. 
 | 
static Strel3D.Shape | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Strel3D.Shape[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Strel3D.Shape BALL
SquareStrelpublic static final Strel3D.Shape CUBE
SquareStrelpublic static final Strel3D.Shape SQUARE
SquareStrelpublic static final Strel3D.Shape DIAMOND
DiamondStrel, 
Cross3x3Strelpublic static final Strel3D.Shape OCTAGON
OctagonStrelpublic static final Strel3D.Shape LINE_HORIZ
LinearHorizontalStrelpublic static final Strel3D.Shape LINE_VERT
LinearVerticalStrelpublic static final Strel3D.Shape LINE_Z
LinearDepthStrel3Dpublic static final Strel3D.Shape LINE_DIAG_UP
LinearDiagUpStrelpublic static final Strel3D.Shape LINE_DIAG_DOWN
LinearDiagDownStrelpublic static Strel3D.Shape[] values()
for (Strel3D.Shape c : Strel3D.Shape.values()) System.out.println(c);
public static Strel3D.Shape 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<Strel3D.Shape>public Strel3D fromRadius(int radius)
radius - the radius of the structuring element, in pixelspublic Strel3D fromRadiusList(int radiusX, int radiusY, int radiusZ)
radiusX - the radius of the structuring element in the x-direction, in pixelsradiusY - the radius of the structuring element in the y-direction, in pixelsradiusZ - the radius of the structuring element in the z-direction, in pixelspublic Strel3D fromDiameter(int diam)
diam - the orthogonal diameter of the structuring element (max of x and y sizes), in pixelspublic Strel3D fromDiameterList(int diamX, int diamY, int diamZ)
diamX - the diameter of the structuring element in the X directiondiamY - the diameter of the structuring element in the Y directiondiamZ - the diameter of the structuring element in the Z directionpublic static String[] getAllLabels()
public static Strel3D.Shape fromLabel(String label)
label - the name of the structuring elementIllegalArgumentException - if label is not recognized.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.