Package boofcv.alg.transform.pyramid
Class PyramidFloatGaussianScale<T extends boofcv.struct.image.ImageGray<T>>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidFloat<T>
-
- boofcv.alg.transform.pyramid.PyramidFloatGaussianScale<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>PyramidFloatin 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. UnlikePyramidDiscreteSampleBlurthe 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>interpolateprotected double[]sigmaprotected float[]sigmaLayersprotected TtempImage
-
Constructor Summary
Constructors Modifier Constructor Description PyramidFloatGaussianScale(InterpolatePixelS<T> interpolate, double[] scales, double[] sigmaLayers, java.lang.Class<T> imageType)Configures the pyramidprotectedPyramidFloatGaussianScale(PyramidFloatGaussianScale<T> orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boofcv.struct.pyramid.ImagePyramid<T>copyStructure()InterpolatePixelS<T>getInterpolate()doublegetSampleOffset(int layer)doublegetSigma(int layer)float[]getSigmaLayers()voidprocess(T input)voidsetInterpolate(InterpolatePixelS<T> interpolate)-
Methods inherited from class boofcv.struct.pyramid.PyramidFloat
getNumLayers, getScale, setScaleFactors
-
-
-
-
Field Detail
-
interpolate
protected InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>> interpolate
-
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 imagesigmaLayers- Amount of blur applied to the previous layer while constructing the pyramid.imageType- Type of image it's processing
-
PyramidFloatGaussianScale
protected PyramidFloatGaussianScale(PyramidFloatGaussianScale<T> orig)
-
-
Method Detail
-
process
public void process(T input)
-
getInterpolate
public InterpolatePixelS<T> getInterpolate()
-
setInterpolate
public void setInterpolate(InterpolatePixelS<T> interpolate)
-
getSampleOffset
public double getSampleOffset(int layer)
-
getSigma
public double getSigma(int layer)
-
copyStructure
public boofcv.struct.pyramid.ImagePyramid<T> copyStructure()
-
getSigmaLayers
public float[] getSigmaLayers()
-
-