boofcv.alg.transform.pyramid
Class PyramidDiscreteAverage<T extends ImageGray>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidDiscrete<T>
-
- boofcv.alg.transform.pyramid.PyramidDiscreteAverage<T>
-
- All Implemented Interfaces:
- ImagePyramid<T>
public class PyramidDiscreteAverage<T extends ImageGray> extends PyramidDiscrete<T>
Creates an image pyramid by down sampling square regions usingAverageDownSampleOps.
-
-
Field Summary
-
Fields inherited from class boofcv.struct.pyramid.PyramidDiscrete
scale
-
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
layers
-
-
Constructor Summary
Constructors Constructor and Description PyramidDiscreteAverage(java.lang.Class<T> imageType, boolean saveOriginalReference, int... scaleFactors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetSampleOffset(int layer)The center of the sampling kernel is 1/2 the square region's widthdoublegetSigma(int layer)Returns the scale-space scale for the specified layer.voidprocess(T input)Constructs the image pyramid given the input image.-
Methods inherited from class boofcv.struct.pyramid.PyramidDiscrete
getNumLayers, getScale, getScales, setScaleFactors
-
Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase
getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isSaveOriginalReference, setFirstLayer, setTo
-
-
-
-
Constructor Detail
-
PyramidDiscreteAverage
public PyramidDiscreteAverage(java.lang.Class<T> imageType, boolean saveOriginalReference, int... scaleFactors)
- 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.scaleFactors- Scale factor for each layer in the pyramid relative to the input layer
-
-
Method Detail
-
process
public void process(T input)
Description copied from interface:ImagePyramidConstructs the image pyramid given the input image.
-
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)
Description copied from interface:ImagePyramidReturns the scale-space scale for the specified layer. This scale is equivalent amount of Gaussian blur applied to the input image. If Gaussian blur is not applied to each layer then an approximation should be returned.- Parameters:
layer- Layer in the pyramid- Returns:
- Equivalent sigma for Gaussian blur.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG