Enum SoMedianFilterProcessing.KernelModes
- java.lang.Object
-
- java.lang.Enum<SoMedianFilterProcessing.KernelModes>
-
- com.openinventor.imageviz.engines.imagefiltering.smoothinganddenoising.SoMedianFilterProcessing.KernelModes
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoMedianFilterProcessing.KernelModes>
- Enclosing class:
- SoMedianFilterProcessing
public static enum SoMedianFilterProcessing.KernelModes extends java.lang.Enum<SoMedianFilterProcessing.KernelModes> implements IntegerValuedEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALL
This mode specifies a disk neighborhood in 2D or a sphere neighborhood in 3D.CUBE
This mode specifies a square neighborhood in 2D or a cube neighborhood in 3D.ITERATIVE
This mode performs an iterative median filtering of the input image.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoMedianFilterProcessing.KernelModes
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoMedianFilterProcessing.KernelModes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoMedianFilterProcessing.KernelModes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ITERATIVE
public static final SoMedianFilterProcessing.KernelModes ITERATIVE
This mode performs an iterative median filtering of the input image. In 2D: iteratively, a pixel is assigned to the median value in a 3x3 neighborhood around the corresponding pixel in the previous iteration. The same goes in 3D but the neighborhood is controlled by the 3D connectivity (6-, 18- or 26-direct neighbors). In ITERATIVE mode the elementSize field represents the number of iterations. The ITERATIVE mode is recommended to be used with 2D image with an elementSize lower than 3. For greater values, ITERATIVE mode is faster than SQUARE mode but doesn't change significantly the results, while SQUARE mode applies the filter in the effective window size.
-
CUBE
public static final SoMedianFilterProcessing.KernelModes CUBE
This mode specifies a square neighborhood in 2D or a cube neighborhood in 3D. In 2D, it will produce a square of side 2 x elementSize + 1 pixels. In 3D, it will produce a cube with of size 2 x elementSize + 1 voxels.
-
BALL
public static final SoMedianFilterProcessing.KernelModes BALL
This mode specifies a disk neighborhood in 2D or a sphere neighborhood in 3D. In 2D, it will produce a disk with of diameter 2 x + 1 pixels. In 3D, it will produce a spshee of diameter 2 x elementSize + 1 voxels.
-
-
Method Detail
-
values
public static SoMedianFilterProcessing.KernelModes[] 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 (SoMedianFilterProcessing.KernelModes c : SoMedianFilterProcessing.KernelModes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoMedianFilterProcessing.KernelModes valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoMedianFilterProcessing.KernelModes valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
-