Class FactoryPyramid


  • public class FactoryPyramid
    extends java.lang.Object
    Factory for creating classes related to image pyramids.
    • Constructor Summary

      Constructors 
      Constructor Description
      FactoryPyramid()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends boofcv.struct.image.ImageBase<T>>
      boofcv.struct.pyramid.PyramidDiscrete<T>
      discreteGaussian​(boofcv.struct.pyramid.ConfigDiscreteLevels configLevels, double sigma, int radius, boolean saveOriginalReference, boofcv.struct.image.ImageType<T> imageType)
      Creates an updater for discrete pyramids where a Gaussian is convolved across the input prior to sub-sampling.
      static <T extends boofcv.struct.image.ImageGray<T>>
      boofcv.struct.pyramid.PyramidFloat<T>
      floatGaussian​(double[] scaleFactors, double[] sigmas, java.lang.Class<T> imageType)
      Creates a float pyramid where each layer is blurred using a Gaussian with the specified sigma.
      static <T extends boofcv.struct.image.ImageGray<T>>
      boofcv.struct.pyramid.PyramidFloat<T>
      scaleSpace​(double[] scaleSpace, java.lang.Class<T> imageType)
      Constructs a scale-space image pyramid.
      static <T extends boofcv.struct.image.ImageGray<T>>
      boofcv.struct.pyramid.PyramidFloat<T>
      scaleSpacePyramid​(double[] scaleSpace, java.lang.Class<T> imageType)
      Constructs an image pyramid which is designed to mimic a GaussianScaleSpace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FactoryPyramid

        public FactoryPyramid()
    • Method Detail

      • discreteGaussian

        public static <T extends boofcv.struct.image.ImageBase<T>> boofcv.struct.pyramid.PyramidDiscrete<T> discreteGaussian​(boofcv.struct.pyramid.ConfigDiscreteLevels configLevels,
                                                                                                                             double sigma,
                                                                                                                             int radius,
                                                                                                                             boolean saveOriginalReference,
                                                                                                                             boofcv.struct.image.ImageType<T> imageType)
        Creates an updater for discrete pyramids where a Gaussian is convolved across the input prior to sub-sampling.
        Parameters:
        imageType - Type of input image.
        sigma - Gaussian sigma. If < 0 then a sigma is selected using the radius. Try -1.
        radius - Radius of the Gaussian kernel. If < 0 then the radius is selected using sigma. Try 2.
        Returns:
        PyramidDiscrete
      • floatGaussian

        public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.pyramid.PyramidFloat<T> floatGaussian​(double[] scaleFactors,
                                                                                                                       double[] sigmas,
                                                                                                                       java.lang.Class<T> imageType)
        Creates a float pyramid where each layer is blurred using a Gaussian with the specified sigma. Bilinear interpolation is used when sub-sampling.
        Parameters:
        scaleFactors - The scale factor of each layer relative to the previous layer. Layer 0 is relative to the input image.
        sigmas - Gaussian blur magnitude for each layer.
        imageType - Type of image in the pyramid.
        Returns:
        PyramidFloat
      • scaleSpacePyramid

        public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.pyramid.PyramidFloat<T> scaleSpacePyramid​(double[] scaleSpace,
                                                                                                                           java.lang.Class<T> imageType)
        Constructs an image pyramid which is designed to mimic a GaussianScaleSpace. Each layer in the pyramid should have the equivalent amount of blur that a space-space constructed with the same parameters would have.
        Parameters:
        scaleSpace - The scale of each layer and the desired amount of blur relative to the original image
        imageType - Type of image
        Returns:
        PyramidFloat
      • scaleSpace

        public static <T extends boofcv.struct.image.ImageGray<T>> boofcv.struct.pyramid.PyramidFloat<T> scaleSpace​(double[] scaleSpace,
                                                                                                                    java.lang.Class<T> imageType)
        Constructs a scale-space image pyramid. Each layer in the pyramid is the same size as the input image but has a different amount of blur applied to it.
        Type Parameters:
        T - Type of image
        Parameters:
        scaleSpace - Amount of blur applied to each layer in the pyramid relative to the input image.
        imageType - Type of image
        Returns:
        Scale-space image pyramid