Package boofcv.alg.transform.pyramid
Class PyramidDiscreteAverage<T extends ImageBase<T>>
java.lang.Object
boofcv.struct.pyramid.ImagePyramidBase<T>
boofcv.struct.pyramid.PyramidDiscrete<T>
boofcv.alg.transform.pyramid.PyramidDiscreteAverage<T>
- All Implemented Interfaces:
ImagePyramid<T>
Creates an image pyramid by down sampling square regions using
AverageDownSampleOps
.-
Field Summary
Fields inherited from class boofcv.struct.pyramid.PyramidDiscrete
levelScales
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
bottomHeight, bottomWidth, layers, saveOriginalReference
-
Constructor Summary
ModifierConstructorDescriptionprotected
PyramidDiscreteAverage
(ImageType<T> imageType, boolean saveOriginalReference, @Nullable ConfigDiscreteLevels configLayers) -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of the pyramids structure but not the pixel datadouble
getSampleOffset
(int layer) The center of the sampling kernel is 1/2 the square region's widthdouble
getSigma
(int layer) Returns the scale-space scale for the specified layer.void
Constructs the image pyramid given the input image.Methods inherited from class boofcv.struct.pyramid.PyramidDiscrete
computeScales, getNumLayers, getScale, getScales, initialize
Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase
checkScales, getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, isInitialized, isSaveOriginalReference, setFirstLayer, setSaveOriginalReference, setTo
-
Constructor Details
-
PyramidDiscreteAverage
public PyramidDiscreteAverage(ImageType<T> imageType, boolean saveOriginalReference, @Nullable @Nullable 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
-
-
Method Details
-
process
Description copied from interface:ImagePyramid
Constructs 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:ImagePyramid
Returns 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.
-
copyStructure
Description copied from interface:ImagePyramid
Creates a copy of the pyramids structure but not the pixel data
-