Package adams.data.opencv
Enum ImreadMode
- java.lang.Object
-
- java.lang.Enum<ImreadMode>
-
- adams.data.opencv.ImreadMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ImreadMode>
public enum ImreadMode extends Enum<ImreadMode>
Modes for reading images using imread. https://docs.opencv.org/4.6.0/d8/d6a/group__imgcodecs__flags.html#ga61d9b0126a3e57d9277ac48327799c80- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMode()
Returns the OpenCV mode.static ImreadMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImreadMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMREAD_UNCHANGED
public static final ImreadMode IMREAD_UNCHANGED
-
IMREAD_GRAYSCALE
public static final ImreadMode IMREAD_GRAYSCALE
-
IMREAD_COLOR
public static final ImreadMode IMREAD_COLOR
-
IMREAD_ANYDEPTH
public static final ImreadMode IMREAD_ANYDEPTH
-
IMREAD_ANYCOLOR
public static final ImreadMode IMREAD_ANYCOLOR
-
IMREAD_LOAD_GDAL
public static final ImreadMode IMREAD_LOAD_GDAL
-
IMREAD_REDUCED_GRAYSCALE_2
public static final ImreadMode IMREAD_REDUCED_GRAYSCALE_2
-
IMREAD_REDUCED_COLOR_2
public static final ImreadMode IMREAD_REDUCED_COLOR_2
-
IMREAD_REDUCED_GRAYSCALE_4
public static final ImreadMode IMREAD_REDUCED_GRAYSCALE_4
-
IMREAD_REDUCED_COLOR_4
public static final ImreadMode IMREAD_REDUCED_COLOR_4
-
IMREAD_REDUCED_GRAYSCALE_8
public static final ImreadMode IMREAD_REDUCED_GRAYSCALE_8
-
IMREAD_REDUCED_COLOR_8
public static final ImreadMode IMREAD_REDUCED_COLOR_8
-
IMREAD_IGNORE_ORIENTATION
public static final ImreadMode IMREAD_IGNORE_ORIENTATION
-
-
Method Detail
-
values
public static ImreadMode[] 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 (ImreadMode c : ImreadMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImreadMode 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 nameNullPointerException
- if the argument is null
-
getMode
public int getMode()
Returns the OpenCV mode.- Returns:
- the mode
-
-