boofcv.struct.pyramid
Class PyramidFloat<T extends ImageGray>
- java.lang.Object
-
- boofcv.struct.pyramid.ImagePyramidBase<T>
-
- boofcv.struct.pyramid.PyramidFloat<T>
-
- All Implemented Interfaces:
- ImagePyramid<T>
- Direct Known Subclasses:
- PyramidFloatGaussianScale, PyramidFloatScale
public abstract class PyramidFloat<T extends ImageGray> extends ImagePyramidBase<T>
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
ImagePyramidwhere the scale factor between each level is specified using a floating point number.
-
-
Field Summary
Fields Modifier and Type Field and Description double[]scale-
Fields inherited from class boofcv.struct.pyramid.ImagePyramidBase
layers
-
-
Constructor Summary
Constructors Constructor and Description PyramidFloat(java.lang.Class<T> imageType, double... scaleFactors)Defines the image pyramid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumLayers()Returns 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
getHeight, getImageType, getInputHeight, getInputWidth, getLayer, getWidth, initialize, isSaveOriginalReference, setFirstLayer, setTo
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.struct.pyramid.ImagePyramid
getSampleOffset, getSigma, process
-
-
-
-
Constructor Detail
-
PyramidFloat
public PyramidFloat(java.lang.Class<T> imageType, double... scaleFactors)
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...).
-
-
Method Detail
-
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG