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
FieldsFields inherited from class boofcv.struct.pyramid.PyramidFloat
scaleFields inherited from class boofcv.struct.pyramid.ImagePyramidBase
bottomHeight, bottomWidth, layers, saveOriginalReference -
Constructor Summary
ConstructorsModifierConstructorDescriptionPyramidFloatScale(InterpolatePixelS<T> interpolate, double[] scaleFactors, Class<T> imageType) protectedPyramidFloatScale(PyramidFloatScale<T> orig) -
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of the pyramids structure but not the pixel datadoublegetSampleOffset(int layer) Returns the sampling offset.doublegetSigma(int layer) No blur is applied to the imagevoidConstructs the image pyramid given the input image.Methods inherited from class boofcv.struct.pyramid.PyramidFloat
getNumLayers, getScale, setScaleFactorsMethods 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:ImagePyramidConstructs the image pyramid given the input image. -
getSampleOffset
public double getSampleOffset(int layer) Description copied from interface:ImagePyramidReturns 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:ImagePyramidCreates a copy of the pyramids structure but not the pixel data
-