Package boofcv.struct.pyramid
Class PyramidFloat<T extends ImageBase<T>>
java.lang.Object
boofcv.struct.pyramid.ImagePyramidBase<T>
boofcv.struct.pyramid.PyramidFloat<T>
- All Implemented Interfaces:
ImagePyramid<T>
- Direct Known Subclasses:
PyramidFloatGaussianScale,PyramidFloatScale
An image pyramid where each level can be an arbitrary scale. Higher levels in the pyramid
are sub-sampled from lower levels in the pyramid allowing fractions of a pixel change. This
added flexibility comes at the cost of some performance relative to PyramidDiscrete.
An ImagePyramid where the scale factor between each level is specified using a floating point number.
-
Field Summary
FieldsFields inherited from class boofcv.struct.pyramid.ImagePyramidBase
bottomHeight, bottomWidth, layers, saveOriginalReference -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPyramidFloat(ImageType<T> imageType, double... scaleFactors) Defines the image pyramid.protectedPyramidFloat(PyramidFloat<T> orig) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of layers in the pyramid.doublegetScale(int layer) Returns the scale of the specified layer in the pyramid.voidsetScaleFactors(double... scaleFactors) Specifies the pyramid's structure.Methods inherited from class boofcv.struct.pyramid.ImagePyramidBase
checkScales, getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isInitialized, isSaveOriginalReference, setFirstLayer, setSaveOriginalReference, setToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.struct.pyramid.ImagePyramid
copyStructure, getSampleOffset, getSigma, process
-
Field Details
-
scale
public double[] scale
-
-
Constructor Details
-
PyramidFloat
Defines the image pyramid.- Parameters:
imageType- Type of imagescaleFactors- (optional) Specifies the scale of each layer in the pyramid. See restrictions on scaleFactor insetScaleFactors(double...).
-
PyramidFloat
-
-
Method Details
-
setScaleFactors
public void setScaleFactors(double... scaleFactors) Specifies the pyramid's structure.- Parameters:
scaleFactors- Change in scale factor for each layer in the pyramid.
-
getScale
public double getScale(int layer) Description copied from interface:ImagePyramidReturns the scale of the specified layer in the pyramid. Larger the scale smaller the image is relative to the input image.- Parameters:
layer- Which layer is being inspected.- Returns:
- The layer's scale.
-
getNumLayers
public int getNumLayers()Description copied from interface:ImagePyramidReturns the number of layers in the pyramid.
-