public static enum StereoAnaglyph.Algorithm extends java.lang.Enum<StereoAnaglyph.Algorithm>
| Enum Constant and Description |
|---|
ColorAnaglyph
Creates anaglyph image using the below calculations:
Ra = RI; Ga = Gr; Ba = Br; |
GrayAnaglyph
Creates anaglyph image using the below calculations:
Ra = 0.299*RI + 0.587 * GI + 0.114*BI; Ga = 0.299*Rr + 0.587 * Gr + 0.114*Br; Ba =0.299*Rr + 0.587 * Gr + 0.114*Br; |
HalfColorAnaglyph
Creates anaglyph image using the below calculations:
Ra = 0.299*RI + 0.587 * GI + 0.114*BI; Ga = Gr; Ba = Br; |
OptimizedAnaglyph
Creates anaglyph image using the below calculations:
Ra = 0.7 * GI + 0.3 * BI; Ga = Gr; Ba = Br; |
TrueAnaglyph
Creates anaglyph image using the below calculations:
Ra = 0.299*RI + 0.587 * GI + 0.114*BI; Ga = 0; Ba = 0.299 * Rr + 0.587 * Gr + 0.114 * Br. |
| Modifier and Type | Method and Description |
|---|---|
static StereoAnaglyph.Algorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StereoAnaglyph.Algorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StereoAnaglyph.Algorithm TrueAnaglyph
public static final StereoAnaglyph.Algorithm GrayAnaglyph
public static final StereoAnaglyph.Algorithm ColorAnaglyph
public static final StereoAnaglyph.Algorithm HalfColorAnaglyph
public static final StereoAnaglyph.Algorithm OptimizedAnaglyph
public static StereoAnaglyph.Algorithm[] values()
for (StereoAnaglyph.Algorithm c : StereoAnaglyph.Algorithm.values()) System.out.println(c);
public static StereoAnaglyph.Algorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null