Package boofcv.factory.interpolate
Class FactoryInterpolation
java.lang.Object
boofcv.factory.interpolate.FactoryInterpolation
Simplified interface for creating interpolation classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
InterpolatePixelS<T>static <T extends ImageMultiBand<T>>
InterpolatePixelMB<T>bilinearPixelMB
(ImageType<T> imageType, BorderType borderType) static <T extends ImageMultiBand<T>>
InterpolatePixelMB<T>bilinearPixelMB
(T image, BorderType borderType) static <T extends ImageGray<T>>
InterpolatePixelS<T>bilinearPixelS
(Class<T> imageType, BorderType borderType) static <T extends ImageGray<T>>
InterpolatePixelS<T>bilinearPixelS
(T image, BorderType borderType) static <T extends ImageGray<T>>
InterpolateRectangle<T>bilinearRectangle
(Class<T> type) static <T extends ImageGray<T>>
InterpolateRectangle<T>bilinearRectangle
(T image) static <T extends ImageBase<T>>
InterpolatePixel<T>createPixel
(double min, double max, InterpolationType type, BorderType borderType, ImageType<T> imageType) static <T extends ImageBase<T>>
InterpolatePixelMB<T>createPixelMB
(double min, double max, InterpolationType type, BorderType borderType, ImageType<T> imageType) Pixel based interpolation on multi-band imagestatic <T extends ImageGray<T>>
InterpolatePixelMB<Planar<T>>createPixelPL
(InterpolatePixelS<T> singleBand) Converts a single band interpolation algorithm into a mult-band interpolation forPlanar
images.static <T extends ImageGray<T>>
InterpolatePixelS<T>createPixelS
(double min, double max, InterpolationType type, BorderType borderType, ImageDataType dataType) ReturnsInterpolatePixelS
of the specified type.static <T extends ImageGray<T>>
InterpolatePixelS<T>createPixelS
(double min, double max, InterpolationType type, BorderType borderType, Class<T> imageType) Creates an interpolation class of the specified type for the specified image type.static <T extends ImageMultiBand<T>>
InterpolatePixelMB<T>nearestNeighborPixelMB
(ImageType<T> imageType, BorderType borderType) static <T extends ImageGray<T>>
InterpolatePixelS<T>nearestNeighborPixelS
(Class<T> type) static <T extends ImageGray<T>>
InterpolateRectangle<T>nearestNeighborRectangle
(Class<?> type) static <T extends ImageGray<T>>
InterpolatePixelS<T>polynomialS
(int maxDegree, double min, double max, Class<T> type)
-
Constructor Details
-
FactoryInterpolation
public FactoryInterpolation()
-
-
Method Details
-
createPixelS
public static <T extends ImageGray<T>> InterpolatePixelS<T> createPixelS(double min, double max, InterpolationType type, BorderType borderType, ImageDataType dataType) ReturnsInterpolatePixelS
of the specified type.- Parameters:
min
- Minimum possible pixel value. Inclusive.max
- Maximum possible pixel value. Inclusive.type
- Type of interpolation.dataType
- Type of gray-scale image- Returns:
- Interpolation for single band image
-
createPixel
public static <T extends ImageBase<T>> InterpolatePixel<T> createPixel(double min, double max, InterpolationType type, BorderType borderType, ImageType<T> imageType) -
createPixelS
public static <T extends ImageGray<T>> InterpolatePixelS<T> createPixelS(double min, double max, InterpolationType type, BorderType borderType, Class<T> imageType) Creates an interpolation class of the specified type for the specified image type.- Parameters:
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 image- Returns:
- Interpolation
-
createPixelMB
public static <T extends ImageBase<T>> InterpolatePixelMB<T> createPixelMB(double min, double max, InterpolationType type, BorderType borderType, ImageType<T> imageType) Pixel based interpolation on multi-band image- Parameters:
min
- Minimum possible pixel value. Inclusive.max
- Maximum possible pixel value. Inclusive.type
- Interpolation typeimageType
- Type of input image
-
createPixelPL
public static <T extends ImageGray<T>> InterpolatePixelMB<Planar<T>> createPixelPL(InterpolatePixelS<T> singleBand) Converts a single band interpolation algorithm into a mult-band interpolation forPlanar
images. NOTE: If a specialized interpolation exists you should use that instead of this the specialized code can reduce the number of calculations.- Type Parameters:
T
- Single band image trype- Parameters:
singleBand
- Interpolation for a single band.- Returns:
- Interpolation for Planar images
-
bilinearPixelS
public static <T extends ImageGray<T>> InterpolatePixelS<T> bilinearPixelS(T image, BorderType borderType) -
bilinearPixelS
public static <T extends ImageGray<T>> InterpolatePixelS<T> bilinearPixelS(Class<T> imageType, BorderType borderType) -
bilinearPixelMB
public static <T extends ImageMultiBand<T>> InterpolatePixelMB<T> bilinearPixelMB(T image, BorderType borderType) -
bilinearPixelMB
public static <T extends ImageMultiBand<T>> InterpolatePixelMB<T> bilinearPixelMB(ImageType<T> imageType, BorderType borderType) -
nearestNeighborPixelMB
public static <T extends ImageMultiBand<T>> InterpolatePixelMB<T> nearestNeighborPixelMB(ImageType<T> imageType, BorderType borderType) -
bilinearRectangle
-
bilinearRectangle
-
nearestNeighborPixelS
-
nearestNeighborRectangle
public static <T extends ImageGray<T>> InterpolateRectangle<T> nearestNeighborRectangle(Class<?> type) -
bicubicS
public static <T extends ImageGray<T>> InterpolatePixelS<T> bicubicS(float param, float min, float max, Class<T> type) -
polynomialS
public static <T extends ImageGray<T>> InterpolatePixelS<T> polynomialS(int maxDegree, double min, double max, Class<T> type)
-