Enum Class PlanePyramidSource.AveragingMode
java.lang.Object
java.lang.Enum<PlanePyramidSource.AveragingMode>
net.algart.matrices.maps.pyramids.io.api.PlanePyramidSource.AveragingMode
- All Implemented Interfaces:
Serializable,Comparable<PlanePyramidSource.AveragingMode>,Constable
- Enclosing interface:
- PlanePyramidSource
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLikeMIN, but affects binary data only (for other types performs averaging).For binary data means conversion to bytes + averaging, for other types means averaging.For binary data means simple, for other types means averaging.LikeMAX, but affects binary data only (for other types performs averaging).Step decimation. -
Method Summary
Modifier and TypeMethodDescriptionnet.algart.arrays.Matrices.ResizingMethodaveragingMethod(net.algart.arrays.Matrix<?> matrix) Returns the enum constant of this class with the specified name.static PlanePyramidSource.AveragingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
For binary data means simple, for other types means averaging. Note that in a case of BIT_TO_BYTE the source data are already converted to bytes (if a pyramid contains more than 1 level). Recommended for algorithmic needs. -
AVERAGING
For binary data means conversion to bytes + averaging, for other types means averaging. Recommended for viewers. -
SIMPLE
Step decimation. Never averages pixels. -
AND
LikeMIN, but affects binary data only (for other types performs averaging). -
OR
LikeMAX, but affects binary data only (for other types performs averaging). -
MIN
-
MAX
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
averagingMethod
public net.algart.arrays.Matrices.ResizingMethod averagingMethod(net.algart.arrays.Matrix<?> matrix)
-