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.
| Modifier and Type | Field and Description |
|---|---|
protected InterpolatePixelS<T> |
interpolate |
protected double[] |
sigma |
protected float[] |
sigmaLayers |
protected T |
tempImage |
| Constructor and Description |
|---|
PyramidFloatGaussianScale(InterpolatePixelS<T> interpolate,
double[] scales,
double[] sigmaLayers,
java.lang.Class<T> imageType)
Configures the pyramid
|
| Modifier and Type | Method and Description |
|---|---|
InterpolatePixelS<T> |
getInterpolate() |
double |
getSampleOffset(int layer) |
double |
getSigma(int layer) |
float[] |
getSigmaLayers() |
void |
process(T input) |
void |
setInterpolate(InterpolatePixelS<T> interpolate) |
getNumLayers, getScale, setScaleFactorsprotected InterpolatePixelS<T extends boofcv.struct.image.ImageGray<T>> interpolate
protected float[] sigmaLayers
protected double[] sigma
public PyramidFloatGaussianScale(InterpolatePixelS<T> interpolate, double[] scales, double[] sigmaLayers, java.lang.Class<T> imageType)
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 processingpublic void process(T input)
public InterpolatePixelS<T> getInterpolate()
public void setInterpolate(InterpolatePixelS<T> interpolate)
public double getSampleOffset(int layer)
public double getSigma(int layer)
public float[] getSigmaLayers()