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
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
bottomHeight, bottomWidth, layers, saveOriginalReference
-
Constructor Summary
ModifierConstructorDescriptionprotected
PyramidFloat
(ImageType<T> imageType, double... scaleFactors) Defines the image pyramid.protected
PyramidFloat
(PyramidFloat<T> orig) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of layers in the pyramid.double
getScale
(int layer) Returns the scale of the specified layer in the pyramid.void
setScaleFactors
(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, setTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ImagePyramid
Returns 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:ImagePyramid
Returns the number of layers in the pyramid.
-