Package boofcv.alg.transform.pyramid
Class PyramidDiscreteSampleBlur<T extends boofcv.struct.image.ImageBase<T>>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidDiscrete<T>
-
- boofcv.alg.transform.pyramid.PyramidDiscreteSampleBlur<T>
-
- All Implemented Interfaces:
boofcv.struct.pyramid.ImagePyramid<T>
public class PyramidDiscreteSampleBlur<T extends boofcv.struct.image.ImageBase<T>> extends boofcv.struct.pyramid.PyramidDiscrete<T>Convolves a re-normalizable blur kernel across the image before down sampling. This is useful for creating a Gaussian pyramid as well as other standard pyramids.
NOTE: This pyramid cannot be configured such that blur will be applied to the input image. It can be done by the user before the image is passed in.
NOTE: This blur magnitude is constant for each level in the pyramid. In general it is desirable to have it dependent on each level's scale factor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPyramidDiscreteSampleBlur(PyramidDiscreteSampleBlur<T> orig)PyramidDiscreteSampleBlur(boofcv.struct.convolve.Kernel1D kernel, double sigma, 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)There is no offset since a symmetric kernel is applied starting at pixel (0,0)doublegetSigma(int layer)voidprocess(T input)-
Methods inherited from class boofcv.struct.pyramid.PyramidDiscrete
computeScales, getConfigLayers, getNumLayers, getScale, getScales, initialize
-
-
-
-
Constructor Detail
-
PyramidDiscreteSampleBlur
public PyramidDiscreteSampleBlur(boofcv.struct.convolve.Kernel1D kernel, double sigma, boofcv.struct.image.ImageType<T> imageType, boolean saveOriginalReference, @Nullable boofcv.struct.pyramid.ConfigDiscreteLevels configLayers)- Parameters:
kernel- A blur kernelsigma- The effective amount of Gaussian blur the kernel appliesimageType- 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
-
PyramidDiscreteSampleBlur
protected PyramidDiscreteSampleBlur(PyramidDiscreteSampleBlur<T> orig)
-
-
Method Detail
-
process
public void process(T input)
-
getSampleOffset
public double getSampleOffset(int layer)
There is no offset since a symmetric kernel is applied starting at pixel (0,0)- Parameters:
layer- Layer in the pyramid- Returns:
- offset
-
getSigma
public double getSigma(int layer)
-
copyStructure
public boofcv.struct.pyramid.ImagePyramid<T> copyStructure()
-
-