de.unihalle.informatik.MiToBo.morphology
Enum ComponentPostprocess.ProcessMode

java.lang.Object
  extended by java.lang.Enum<ComponentPostprocess.ProcessMode>
      extended by de.unihalle.informatik.MiToBo.morphology.ComponentPostprocess.ProcessMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComponentPostprocess.ProcessMode>
Enclosing class:
ComponentPostprocess

public static enum ComponentPostprocess.ProcessMode
extends java.lang.Enum<ComponentPostprocess.ProcessMode>

Processing mode identifiers.

Author:
moeller

Enum Constant Summary
ERASE_LARGE_COMPS
          Delete components above a size threshold from the image.
ERASE_ROUND_COMPS
          Delete components with a rounded shape instead of an sustained shape.
ERASE_SMALL_COMPS
          Delete components below a size threshold from the image.
LINK_ADJ_COMPS
          Link adjacent components with a line if distance below threshold.
LINK_ADJ_PIXELS
          Link adjacent pixels if distance below threshold.
VORONOI_EXPAND
          Perform Voronoi expansion for pixels close to components.
 
Method Summary
static ComponentPostprocess.ProcessMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComponentPostprocess.ProcessMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERASE_LARGE_COMPS

public static final ComponentPostprocess.ProcessMode ERASE_LARGE_COMPS
Delete components above a size threshold from the image.

Set threshold with method @link{setMaximalComponentSize}.


ERASE_ROUND_COMPS

public static final ComponentPostprocess.ProcessMode ERASE_ROUND_COMPS
Delete components with a rounded shape instead of an sustained shape. The roundness threshold is given by the user and is in range [0,1], 1 means a sustained region.

Set threshold with method @link{setRoundnessThreshold}.


ERASE_SMALL_COMPS

public static final ComponentPostprocess.ProcessMode ERASE_SMALL_COMPS
Delete components below a size threshold from the image.

Set threshold with method @link{setMinimalComponentSize}.


LINK_ADJ_COMPS

public static final ComponentPostprocess.ProcessMode LINK_ADJ_COMPS
Link adjacent components with a line if distance below threshold.

Set distance with method @link{setMaximalComponentDistance}.


LINK_ADJ_PIXELS

public static final ComponentPostprocess.ProcessMode LINK_ADJ_PIXELS
Link adjacent pixels if distance below threshold.

Set distance with method @link{setMaximalComponentDistance}.


VORONOI_EXPAND

public static final ComponentPostprocess.ProcessMode VORONOI_EXPAND
Perform Voronoi expansion for pixels close to components.

Set dilation mask size with method @link{setMaximalVoronoiExpansionDistance}.

Method Detail

valueOf

public static ComponentPostprocess.ProcessMode 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 name
java.lang.NullPointerException - if the argument is null

values

public static ComponentPostprocess.ProcessMode[] 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 (ComponentPostprocess.ProcessMode c : ComponentPostprocess.ProcessMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared