Package org.nd4j.enums
Enum ImageResizeMethod
- java.lang.Object
-
- java.lang.Enum<ImageResizeMethod>
-
- org.nd4j.enums.ImageResizeMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ImageResizeMethod>
public enum ImageResizeMethod extends Enum<ImageResizeMethod>
ResizeBilinear: Bilinear interpolation. If 'antialias' is true, becomes a hat/tent filter function with radius 1 when downsampling. ResizeLanczos5: Lanczos kernel with radius 5. Very-high-quality filter but may have stronger ringing. ResizeBicubic: Cubic interpolant of Keys. Equivalent to Catmull-Rom kernel. Reasonably good quality and faster than Lanczos3Kernel, particularly when upsampling. ResizeGaussian: Gaussian kernel with radius 3, sigma = 1.5 / 3.0. ResizeNearest: Nearest neighbor interpolation. 'antialias' has no effect when used with nearest neighbor interpolation. ResizeArea: Anti-aliased resampling with area interpolation. 'antialias' has no effect when used with area interpolation; it always anti-aliases. ResizeMitchellcubic: Mitchell-Netravali Cubic non-interpolating filter. For synthetic images (especially those lacking proper prefiltering), less ringing than Keys cubic kernel but less sharp.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ResizeArea
ResizeBicubic
ResizeBilinear
ResizeGaussian
ResizeLanczos3
ResizeLanczos5
ResizeMitchellcubic
ResizeNearest
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
methodIndex()
static ImageResizeMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ImageResizeMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ResizeBilinear
public static final ImageResizeMethod ResizeBilinear
-
ResizeNearest
public static final ImageResizeMethod ResizeNearest
-
ResizeBicubic
public static final ImageResizeMethod ResizeBicubic
-
ResizeArea
public static final ImageResizeMethod ResizeArea
-
ResizeGaussian
public static final ImageResizeMethod ResizeGaussian
-
ResizeLanczos3
public static final ImageResizeMethod ResizeLanczos3
-
ResizeLanczos5
public static final ImageResizeMethod ResizeLanczos5
-
ResizeMitchellcubic
public static final ImageResizeMethod ResizeMitchellcubic
-
-
Method Detail
-
values
public static ImageResizeMethod[] 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 (ImageResizeMethod c : ImageResizeMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageResizeMethod 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
-
methodIndex
public int methodIndex()
-
-