Class PyramidFloatGaussianScale<T extends boofcv.struct.image.ImageGray<T>>

  • All Implemented Interfaces:
    boofcv.struct.pyramid.ImagePyramid<T>

    public class PyramidFloatGaussianScale<T extends boofcv.struct.image.ImageGray<T>>
    extends boofcv.struct.pyramid.PyramidFloat<T>

    PyramidFloat in which each layer is constructed by 1) applying Gaussian blur to the previous layer, and then 2) re-sampling the blurred previous layer. The scaling factor between each level are floating point number. Unlike PyramidDiscreteSampleBlur the scale factors can be arbitrary and are not limited to certain integer values. The specified sigmas are the sigmas which are applied to each layer.

    NOTE: This can be considered the theoretically correct way to construct an image pyramid with no sacrifices to improve speed.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected InterpolatePixelS<T> interpolate  
      protected double[] sigma  
      protected float[] sigmaLayers  
      protected T tempImage  
      • Fields inherited from class boofcv.struct.pyramid.PyramidFloat

        scale
      • Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase

        bottomHeight, bottomWidth, layers, saveOriginalReference
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boofcv.struct.pyramid.ImagePyramid<T> copyStructure()  
      InterpolatePixelS<T> getInterpolate()  
      double getSampleOffset​(int layer)  
      double getSigma​(int layer)  
      float[] getSigmaLayers()  
      void process​(T input)  
      void setInterpolate​(InterpolatePixelS<T> interpolate)  
      • Methods inherited from class boofcv.struct.pyramid.PyramidFloat

        getNumLayers, getScale, setScaleFactors
      • Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase

        checkScales, getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isInitialized, isSaveOriginalReference, setFirstLayer, setSaveOriginalReference, setTo
      • Methods inherited from class java.lang.Object

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

      • interpolate

        protected InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>> interpolate
      • tempImage

        protected T extends boofcv.struct.image.ImageGray<T> tempImage
      • sigmaLayers

        protected float[] sigmaLayers
      • sigma

        protected double[] sigma
    • Constructor Detail

      • PyramidFloatGaussianScale

        public PyramidFloatGaussianScale​(InterpolatePixelS<T> interpolate,
                                         double[] scales,
                                         double[] sigmaLayers,
                                         java.lang.Class<T> imageType)
        Configures the pyramid
        Parameters:
        interpolate - Interpolation function used to sub-sample.
        scales - Scales of each layer in the pyramid relative to the input image
        sigmaLayers - Amount of blur applied to the previous layer while constructing the pyramid.
        imageType - Type of image it's processing
    • Method Detail

      • process

        public void process​(T input)
      • getSampleOffset

        public double getSampleOffset​(int layer)
      • getSigma

        public double getSigma​(int layer)
      • copyStructure

        public boofcv.struct.pyramid.ImagePyramid<T> copyStructure()
      • getSigmaLayers

        public float[] getSigmaLayers()