Package boofcv.alg.transform.pyramid
Class PyramidDiscreteAverage<T extends boofcv.struct.image.ImageBase<T>>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidDiscrete<T>
-
- boofcv.alg.transform.pyramid.PyramidDiscreteAverage<T>
-
- All Implemented Interfaces:
boofcv.struct.pyramid.ImagePyramid<T>
public class PyramidDiscreteAverage<T extends boofcv.struct.image.ImageBase<T>> extends boofcv.struct.pyramid.PyramidDiscrete<T>Creates an image pyramid by down sampling square regions usingAverageDownSampleOps.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPyramidDiscreteAverage(PyramidDiscreteAverage<T> orig)PyramidDiscreteAverage(boofcv.struct.image.ImageType<T> imageType, boolean saveOriginalReference, boofcv.struct.pyramid.ConfigDiscreteLevels configLayers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boofcv.struct.pyramid.ImagePyramid<T>copyStructure()doublegetSampleOffset(int layer)The center of the sampling kernel is 1/2 the square region's widthdoublegetSigma(int layer)voidprocess(T input)-
Methods inherited from class boofcv.struct.pyramid.PyramidDiscrete
computeScales, getConfigLayers, getNumLayers, getScale, getScales, initialize
-
-
-
-
Constructor Detail
-
PyramidDiscreteAverage
public PyramidDiscreteAverage(boofcv.struct.image.ImageType<T> imageType, boolean saveOriginalReference, @Nullable boofcv.struct.pyramid.ConfigDiscreteLevels configLayers)
- Parameters:
imageType- Type of image processedsaveOriginalReference- If a reference to the full resolution image should be saved instead of copied. Set to false if you don't know what you are doing.configLayers- Specifies how the levels are computed
-
PyramidDiscreteAverage
protected PyramidDiscreteAverage(PyramidDiscreteAverage<T> orig)
-
-
Method Detail
-
process
public void process(T input)
-
getSampleOffset
public double getSampleOffset(int layer)
The center of the sampling kernel is 1/2 the square region's width- Parameters:
layer- Layer in the pyramid- Returns:
- offset
-
getSigma
public double getSigma(int layer)
-
copyStructure
public boofcv.struct.pyramid.ImagePyramid<T> copyStructure()
-
-