sj.opencv
Enum Constants.ColorModel

java.lang.Object
  extended by java.lang.Enum<Constants.ColorModel>
      extended by sj.opencv.Constants.ColorModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Constants.ColorModel>
Enclosing class:
Constants

public static enum Constants.ColorModel
extends java.lang.Enum<Constants.ColorModel>


Enum Constant Summary
BGR
           
BGRA
           
GENERIC_1_CHANNEL
           
GENERIC_2_CHANNEL
           
GENERIC_3_CHANNEL
           
GENERIC_4_CHANNEL
           
GRAY
           
HLS
           
HSV
           
RGB
           
RGBA
           
YCrCb
           
 
Method Summary
 int getNumberOfChannels()
           
static Constants.ColorModel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Constants.ColorModel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRAY

public static final Constants.ColorModel GRAY

RGB

public static final Constants.ColorModel RGB

BGR

public static final Constants.ColorModel BGR

RGBA

public static final Constants.ColorModel RGBA

BGRA

public static final Constants.ColorModel BGRA

HSV

public static final Constants.ColorModel HSV

YCrCb

public static final Constants.ColorModel YCrCb

HLS

public static final Constants.ColorModel HLS

GENERIC_1_CHANNEL

public static final Constants.ColorModel GENERIC_1_CHANNEL

GENERIC_2_CHANNEL

public static final Constants.ColorModel GENERIC_2_CHANNEL

GENERIC_3_CHANNEL

public static final Constants.ColorModel GENERIC_3_CHANNEL

GENERIC_4_CHANNEL

public static final Constants.ColorModel GENERIC_4_CHANNEL
Method Detail

values

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

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

valueOf

public static Constants.ColorModel 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

getNumberOfChannels

public final int getNumberOfChannels()