de.unihalle.informatik.MiToBo.core.datatypes
Enum MTBBorder2D.BorderConnectivity

java.lang.Object
  extended by java.lang.Enum<MTBBorder2D.BorderConnectivity>
      extended by de.unihalle.informatik.MiToBo.core.datatypes.MTBBorder2D.BorderConnectivity
All Implemented Interfaces:
Serializable, Comparable<MTBBorder2D.BorderConnectivity>
Enclosing class:
MTBBorder2D

public static enum MTBBorder2D.BorderConnectivity
extends Enum<MTBBorder2D.BorderConnectivity>

Kind of neighborhood to be applied to border pixels.

Author:
moeller

Enum Constant Summary
CONNECTED_4
          Border pixels are connected by 4-neighborhood.
CONNECTED_8
          Border pixels are connected by 8-neighborhood.
 
Method Summary
static MTBBorder2D.BorderConnectivity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MTBBorder2D.BorderConnectivity[] 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

CONNECTED_4

public static final MTBBorder2D.BorderConnectivity CONNECTED_4
Border pixels are connected by 4-neighborhood.


CONNECTED_8

public static final MTBBorder2D.BorderConnectivity CONNECTED_8
Border pixels are connected by 8-neighborhood.

Method Detail

values

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

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

valueOf

public static MTBBorder2D.BorderConnectivity 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.