de.unihalle.informatik.MiToBo.segmentation.thresholds
Enum ImgThreshNiblack.Mode

java.lang.Object
  extended by java.lang.Enum<ImgThreshNiblack.Mode>
      extended by de.unihalle.informatik.MiToBo.segmentation.thresholds.ImgThreshNiblack.Mode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImgThreshNiblack.Mode>
Enclosing class:
ImgThreshNiblack

public static enum ImgThreshNiblack.Mode
extends java.lang.Enum<ImgThreshNiblack.Mode>

Niblack processing mode.

Author:
moeller

Enum Constant Summary
MASKWISE
          Maskwise application of Niblack (non-overlapping).
STD
          Standard Niblack applying a sliding window.
STD_LOCVARCHECK
          Standard Niblack with sliding window and additional variance check.
WHOLE_IMAGE
          Niblack calculation on the whole image (same as 'MASKWISE' with masksize = image_size).
 
Method Summary
static ImgThreshNiblack.Mode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ImgThreshNiblack.Mode[] 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

MASKWISE

public static final ImgThreshNiblack.Mode MASKWISE
Maskwise application of Niblack (non-overlapping).


STD

public static final ImgThreshNiblack.Mode STD
Standard Niblack applying a sliding window.


STD_LOCVARCHECK

public static final ImgThreshNiblack.Mode STD_LOCVARCHECK
Standard Niblack with sliding window and additional variance check.


WHOLE_IMAGE

public static final ImgThreshNiblack.Mode WHOLE_IMAGE
Niblack calculation on the whole image (same as 'MASKWISE' with masksize = image_size).

Method Detail

valueOf

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

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