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 and Description |
|---|
PyramidDiscreteSampleBlur(boofcv.struct.convolve.Kernel1D kernel,
double sigma,
boofcv.struct.image.ImageType<T> imageType,
boolean saveOriginalReference,
int... scaleFactors) |
| Modifier and Type | Method and Description |
|---|---|
double |
getSampleOffset(int layer)
There is no offset since a symmetric kernel is applied starting at pixel (0,0)
|
double |
getSigma(int layer) |
void |
process(T input) |
getNumLayers, getScale, getScales, setScaleFactorspublic PyramidDiscreteSampleBlur(boofcv.struct.convolve.Kernel1D kernel,
double sigma,
boofcv.struct.image.ImageType<T> imageType,
boolean saveOriginalReference,
int... scaleFactors)
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.scaleFactors - Scale factor for each layer in the pyramid relative to the input layerpublic void process(T input)
public double getSampleOffset(int layer)
layer - Layer in the pyramidpublic double getSigma(int layer)