Enum IMeasures.PatchSize
- java.lang.Object
-
- java.lang.Enum<IMeasures.PatchSize>
-
- edu.gsu.cs.dmlab.imageproc.imageparam.interfaces.IMeasures.PatchSize
-
- All Implemented Interfaces:
Serializable
,Comparable<IMeasures.PatchSize>
- Enclosing interface:
- IMeasures
public static enum IMeasures.PatchSize extends Enum<IMeasures.PatchSize>
This contains all possible sizes of a patch that parameters are going to be computed for.
Note: For adding new items to the list, make sure that the input images can be divided by the new number. (bImage.getWidth % newItem == 0)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
static IMeasures.PatchSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static IMeasures.PatchSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_0
public static final IMeasures.PatchSize _0
-
_1
public static final IMeasures.PatchSize _1
-
_4
public static final IMeasures.PatchSize _4
-
_16
public static final IMeasures.PatchSize _16
-
_32
public static final IMeasures.PatchSize _32
-
_64
public static final IMeasures.PatchSize _64
-
_128
public static final IMeasures.PatchSize _128
-
_256
public static final IMeasures.PatchSize _256
-
_512
public static final IMeasures.PatchSize _512
-
_1024
public static final IMeasures.PatchSize _1024
-
-
Method Detail
-
values
public static IMeasures.PatchSize[] 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 (IMeasures.PatchSize c : IMeasures.PatchSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IMeasures.PatchSize 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
-
getSize
public int getSize()
-
-