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:
Serializable, Comparable<ComponentPostprocess.ProcessMode>
Enclosing class:
ComponentPostprocess

public static enum ComponentPostprocess.ProcessMode
extends 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.
EREASE_NON_COMPACT_COMPS
          Delete non-compact regions.
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(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_SMALL_COMPS

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

Set threshold with method setMinimalComponentSize.


ERASE_LARGE_COMPS

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

Set threshold with method setMaximalComponentSize.


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 setMaximalComponentDistance.


LINK_ADJ_PIXELS

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

Set distance with method setMaximalComponentDistance.


VORONOI_EXPAND

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

Set dilation mask size with method setMaximalVoronoiExpansionDistance.


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 setRoundnessThreshold.


EREASE_NON_COMPACT_COMPS

public static final ComponentPostprocess.ProcessMode EREASE_NON_COMPACT_COMPS
Delete non-compact regions. The compactness threshold is given by the user in a range of [0,1]. 1 means perfect compact( circle ). For the definition of compactness see MTBRegion2D.getCircularity().

Method Detail

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

valueOf

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


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.