Package boofcv.factory.interpolate
Class FactoryInterpolation
- java.lang.Object
-
- boofcv.factory.interpolate.FactoryInterpolation
-
public class FactoryInterpolation extends java.lang.ObjectSimplified interface for creating interpolation classes.
-
-
Constructor Summary
Constructors Constructor Description FactoryInterpolation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>bicubicS(float param, float min, float max, java.lang.Class<T> type)static <T extends boofcv.struct.image.ImageMultiBand<T>>
InterpolatePixelMB<T>bilinearPixelMB(boofcv.struct.image.ImageType<T> imageType, boofcv.struct.border.BorderType borderType)static <T extends boofcv.struct.image.ImageMultiBand<T>>
InterpolatePixelMB<T>bilinearPixelMB(T image, boofcv.struct.border.BorderType borderType)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>bilinearPixelS(java.lang.Class<T> imageType, boofcv.struct.border.BorderType borderType)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>bilinearPixelS(T image, boofcv.struct.border.BorderType borderType)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolateRectangle<T>bilinearRectangle(java.lang.Class<T> type)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolateRectangle<T>bilinearRectangle(T image)static <T extends boofcv.struct.image.ImageBase<T>>
InterpolatePixel<T>createPixel(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageType<T> imageType)static <T extends boofcv.struct.image.ImageBase<T>>
InterpolatePixelMB<T>createPixelMB(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageType<T> imageType)Pixel based interpolation on multi-band imagestatic <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelMB<boofcv.struct.image.Planar<T>>createPixelPL(InterpolatePixelS<T> singleBand)Converts a single band interpolation algorithm into a mult-band interpolation forPlanarimages.static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>createPixelS(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageDataType dataType)ReturnsInterpolatePixelSof the specified type.static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>createPixelS(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, java.lang.Class<T> imageType)Creates an interpolation class of the specified type for the specified image type.static <T extends boofcv.struct.image.ImageMultiBand<T>>
InterpolatePixelMB<T>nearestNeighborPixelMB(boofcv.struct.image.ImageType<T> imageType, boofcv.struct.border.BorderType borderType)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>nearestNeighborPixelS(java.lang.Class<T> type)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolateRectangle<T>nearestNeighborRectangle(java.lang.Class<?> type)static <T extends boofcv.struct.image.ImageGray<T>>
InterpolatePixelS<T>polynomialS(int maxDegree, double min, double max, java.lang.Class<T> type)
-
-
-
Method Detail
-
createPixelS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> createPixelS(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageDataType dataType)
ReturnsInterpolatePixelSof 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 boofcv.struct.image.ImageBase<T>> InterpolatePixel<T> createPixel(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.ImageType<T> imageType)
-
createPixelS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> createPixelS(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, java.lang.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 boofcv.struct.image.ImageBase<T>> InterpolatePixelMB<T> createPixelMB(double min, double max, InterpolationType type, boofcv.struct.border.BorderType borderType, boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> InterpolatePixelMB<boofcv.struct.image.Planar<T>> createPixelPL(InterpolatePixelS<T> singleBand)
Converts a single band interpolation algorithm into a mult-band interpolation forPlanarimages. 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 boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> bilinearPixelS(T image, boofcv.struct.border.BorderType borderType)
-
bilinearPixelS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> bilinearPixelS(java.lang.Class<T> imageType, boofcv.struct.border.BorderType borderType)
-
bilinearPixelMB
public static <T extends boofcv.struct.image.ImageMultiBand<T>> InterpolatePixelMB<T> bilinearPixelMB(T image, boofcv.struct.border.BorderType borderType)
-
bilinearPixelMB
public static <T extends boofcv.struct.image.ImageMultiBand<T>> InterpolatePixelMB<T> bilinearPixelMB(boofcv.struct.image.ImageType<T> imageType, boofcv.struct.border.BorderType borderType)
-
nearestNeighborPixelMB
public static <T extends boofcv.struct.image.ImageMultiBand<T>> InterpolatePixelMB<T> nearestNeighborPixelMB(boofcv.struct.image.ImageType<T> imageType, boofcv.struct.border.BorderType borderType)
-
bilinearRectangle
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolateRectangle<T> bilinearRectangle(T image)
-
bilinearRectangle
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolateRectangle<T> bilinearRectangle(java.lang.Class<T> type)
-
nearestNeighborPixelS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> nearestNeighborPixelS(java.lang.Class<T> type)
-
nearestNeighborRectangle
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolateRectangle<T> nearestNeighborRectangle(java.lang.Class<?> type)
-
bicubicS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> bicubicS(float param, float min, float max, java.lang.Class<T> type)
-
polynomialS
public static <T extends boofcv.struct.image.ImageGray<T>> InterpolatePixelS<T> polynomialS(int maxDegree, double min, double max, java.lang.Class<T> type)
-
-