Documentation of 'boofcv.factory.interpolate.FactoryInterpolation' Java class
FactoryInterpolation
boofcv.factory.interpolate

Class FactoryInterpolation



  • public class FactoryInterpolation
    extends java.lang.Object
    Simplified interface for creating interpolation classes.
    • Constructor Detail

      • FactoryInterpolation

        public FactoryInterpolation()
    • Method Detail

      • createPixelS

        public static <T extends ImageGray> InterpolatePixelS<T> createPixelS(double min,
                                                                              double max,
                                                                              TypeInterpolate type,
                                                                              BorderType borderType,
                                                                              ImageDataType dataType)
        Returns InterpolatePixelS 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
      • createPixelS

        public static <T extends ImageGray> InterpolatePixelS<T> 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.
        Parameters:
        min - Minimum possible pixel value. Inclusive.
        max - Maximum possible pixel value. Inclusive.
        type - Interpolation type
        borderType - Border type. If null then it will not be set here.
        imageType - Type of input image
        Returns:
        Interpolation
      • createPixelMB

        public static <T extends ImageBase> InterpolatePixelMB<T> createPixelMB(double min,
                                                                                double max,
                                                                                TypeInterpolate 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 type
        imageType - Type of input image
      • createPixelPL

        public static <T extends ImageGray> InterpolatePixelMB<Planar<T>> createPixelPL(InterpolatePixelS<T> singleBand)
        Converts a single band interpolation algorithm into a mult-band interpolation for Planar 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
      • nearestNeighborPixelS

        public static <T extends ImageGray> InterpolatePixelS<T> nearestNeighborPixelS(java.lang.Class<T> type)
      • bicubicS

        public static <T extends ImageGray> InterpolatePixelS<T> bicubicS(float param,
                                                                          float min,
                                                                          float max,
                                                                          java.lang.Class<T> type)
      • polynomialS

        public static <T extends ImageGray> InterpolatePixelS<T> polynomialS(int maxDegree,
                                                                             double min,
                                                                             double max,
                                                                             java.lang.Class<T> type)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.