public class FactoryInterpolation
extends java.lang.Object
| Constructor and Description |
|---|
FactoryInterpolation() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageGray> |
bicubicS(float param,
float min,
float max,
java.lang.Class<T> type) |
static <T extends ImageMultiBand> |
bilinearPixelMB(ImageType<T> imageType,
BorderType borderType) |
static <T extends ImageMultiBand> |
bilinearPixelMB(T image,
BorderType borderType) |
static <T extends ImageGray> |
bilinearPixelS(java.lang.Class<T> imageType,
BorderType borderType) |
static <T extends ImageGray> |
bilinearPixelS(T image,
BorderType borderType) |
static <T extends ImageGray> |
bilinearRectangle(java.lang.Class<T> type) |
static <T extends ImageGray> |
bilinearRectangle(T image) |
static <T extends ImageBase> |
createPixel(double min,
double max,
TypeInterpolate type,
BorderType borderType,
ImageType<T> imageType) |
static <T extends ImageBase> |
createPixelMB(double min,
double max,
TypeInterpolate type,
BorderType borderType,
ImageType<T> imageType)
Pixel based interpolation on multi-band image
|
static <T extends ImageGray> |
createPixelPL(InterpolatePixelS<T> singleBand)
Converts a single band interpolation algorithm into a mult-band interpolation for
Planar images. |
static <T extends ImageGray> |
createPixelS(double min,
double max,
TypeInterpolate type,
BorderType borderType,
java.lang.Class<T> imageType)
Creates an interpolation class of the specified type for the specified image type.
|
static <T extends ImageGray> |
createPixelS(double min,
double max,
TypeInterpolate type,
BorderType borderType,
ImageDataType dataType)
Returns
InterpolatePixelS of the specified type. |
static <T extends ImageMultiBand> |
nearestNeighborPixelMB(ImageType<T> imageType,
BorderType borderType) |
static <T extends ImageGray> |
nearestNeighborPixelS(java.lang.Class<T> type) |
static <T extends ImageGray> |
nearestNeighborRectangle(java.lang.Class<?> type) |
static <T extends ImageGray> |
polynomialS(int maxDegree,
double min,
double max,
java.lang.Class<T> type) |
public static <T extends ImageGray> InterpolatePixelS<T> createPixelS(double min, double max, TypeInterpolate type, BorderType borderType, ImageDataType dataType)
InterpolatePixelS of the specified type.min - Minimum possible pixel value. Inclusive.max - Maximum possible pixel value. Inclusive.type - Type of interpolation.dataType - Type of gray-scale imagepublic static <T extends ImageBase> InterpolatePixel<T> createPixel(double min, double max, TypeInterpolate type, BorderType borderType, ImageType<T> imageType)
public static <T extends ImageGray> InterpolatePixelS<T> createPixelS(double min, double max, TypeInterpolate type, BorderType borderType, java.lang.Class<T> imageType)
min - Minimum possible pixel value. Inclusive.max - Maximum possible pixel value. Inclusive.type - Interpolation typeborderType - Border type. If null then it will not be set here.imageType - Type of input imagepublic static <T extends ImageBase> InterpolatePixelMB<T> createPixelMB(double min, double max, TypeInterpolate type, BorderType borderType, ImageType<T> imageType)
min - Minimum possible pixel value. Inclusive.max - Maximum possible pixel value. Inclusive.type - Interpolation typeimageType - Type of input imagepublic static <T extends ImageGray> InterpolatePixelMB<Planar<T>> createPixelPL(InterpolatePixelS<T> singleBand)
Planar images.
NOTE: If a specialized interpolation exists you should use that instead of this the specialized code can
reduce the number of calculations.T - Single band image trypesingleBand - Interpolation for a single band.public static <T extends ImageGray> InterpolatePixelS<T> bilinearPixelS(T image, BorderType borderType)
public static <T extends ImageGray> InterpolatePixelS<T> bilinearPixelS(java.lang.Class<T> imageType, BorderType borderType)
public static <T extends ImageMultiBand> InterpolatePixelMB<T> bilinearPixelMB(T image, BorderType borderType)
public static <T extends ImageMultiBand> InterpolatePixelMB<T> bilinearPixelMB(ImageType<T> imageType, BorderType borderType)
public static <T extends ImageMultiBand> InterpolatePixelMB<T> nearestNeighborPixelMB(ImageType<T> imageType, BorderType borderType)
public static <T extends ImageGray> InterpolateRectangle<T> bilinearRectangle(T image)
public static <T extends ImageGray> InterpolateRectangle<T> bilinearRectangle(java.lang.Class<T> type)
public static <T extends ImageGray> InterpolatePixelS<T> nearestNeighborPixelS(java.lang.Class<T> type)
public static <T extends ImageGray> InterpolateRectangle<T> nearestNeighborRectangle(java.lang.Class<?> type)
public static <T extends ImageGray> InterpolatePixelS<T> bicubicS(float param, float min, float max, java.lang.Class<T> type)
public static <T extends ImageGray> InterpolatePixelS<T> polynomialS(int maxDegree, double min, double max, java.lang.Class<T> type)