Package boofcv.alg.transform.pyramid
Class PyramidFloatScale<T extends ImageGray<T>>
java.lang.Object
boofcv.struct.pyramid.ImagePyramidBase<T>
boofcv.struct.pyramid.PyramidFloat<T>
boofcv.alg.transform.pyramid.PyramidFloatScale<T>
- All Implemented Interfaces:
ImagePyramid<T>
Updates each layer in a PyramidFloat
by rescaling the layer with interpolation.
Unlike PyramidFloatGaussianScale
, no additional blurring is done between layers.
-
Field Summary
Fields inherited from class boofcv.struct.pyramid.PyramidFloat
scale
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
bottomHeight, bottomWidth, layers, saveOriginalReference
-
Constructor Summary
ModifierConstructorDescriptionPyramidFloatScale
(InterpolatePixelS<T> interpolate, double[] scaleFactors, Class<T> imageType) protected
PyramidFloatScale
(PyramidFloatScale<T> orig) -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of the pyramids structure but not the pixel datadouble
getSampleOffset
(int layer) Returns the sampling offset.double
getSigma
(int layer) No blur is applied to the imagevoid
Constructs the image pyramid given the input image.Methods inherited from class boofcv.struct.pyramid.PyramidFloat
getNumLayers, getScale, setScaleFactors
Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase
checkScales, getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isInitialized, isSaveOriginalReference, setFirstLayer, setSaveOriginalReference, setTo
-
Field Details
-
interpolate
-
-
Constructor Details
-
PyramidFloatScale
public PyramidFloatScale(InterpolatePixelS<T> interpolate, double[] scaleFactors, Class<T> imageType) -
PyramidFloatScale
-
-
Method Details
-
process
Description copied from interface:ImagePyramid
Constructs the image pyramid given the input image. -
getSampleOffset
public double getSampleOffset(int layer) Description copied from interface:ImagePyramid
Returns the sampling offset. Both x and y axises are assumed to have the same offset. See comment in constructor above.- Parameters:
layer
- Layer in the pyramid- Returns:
- Sampling offset in pixels.
-
getSigma
public double getSigma(int layer) No blur is applied to the image- Parameters:
layer
- Layer in the pyramid- Returns:
- scale
-
copyStructure
Description copied from interface:ImagePyramid
Creates a copy of the pyramids structure but not the pixel data
-